example.env 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # Server url
  2. URL=http://localhost:7777
  3. # If you want to enable sentry for error tracking, put your sentry dsn here.
  4. # SENTRY_DSN=your_sentry_dsn
  5. # Possible to use another sentry project for the front-end to avoid noises
  6. # If not set, fallback to SENTRY_DSN
  7. # SENTRY_FRONT_END_DSN=your_sentry_dsn
  8. # apply colored log to facilitate local development
  9. # COLOR_LOG=true
  10. # <<< Email related settings >>>
  11. # Only print email content, not sending it, for local development
  12. # NOT_SEND_EMAIL=true
  13. # domain used to create alias
  14. EMAIL_DOMAIN=sl.local
  15. # Allow SimpleLogin to enforce SPF by using the extra headers from postfix
  16. ENFORCE_SPF=true
  17. # other domains that can be used to create aliases, in addition to EMAIL_DOMAIN
  18. OTHER_ALIAS_DOMAINS=["domain1.com", "domain2.com"]
  19. # domains that can be used to create aliases. If set, override OTHER_ALIAS_DOMAINS
  20. ALIAS_DOMAINS=["domain1.com", "domain2.com"]
  21. # (optional) domains that are only available to premium accounts
  22. PREMIUM_ALIAS_DOMAINS=["premium.com"]
  23. # the alias domain used when creating the first alias for user, default to EMAIL_DOMAIN if not set
  24. # FIRST_ALIAS_DOMAIN = another-domain.com
  25. # transactional email is sent from this email address
  26. SUPPORT_EMAIL=support@sl.local
  27. SUPPORT_NAME=Son from SimpleLogin
  28. # in case sender is different than SUPPORT_EMAIL
  29. SENDER=sender@sl.local
  30. # all emails sent to sender are stored in this folder
  31. SENDER_DIR=/tmp
  32. # to receive general stats.
  33. # ADMIN_EMAIL=admin@sl.local
  34. # Max number emails user can generate for free plan
  35. MAX_NB_EMAIL_FREE_PLAN=5
  36. # Close registration. Avoid people accidentally creating new account on a self-hosted SimpleLogin
  37. # DISABLE_REGISTRATION=1
  38. # custom domain needs to point to these MX servers
  39. EMAIL_SERVERS_WITH_PRIORITY=[(10, "email.hostname.")]
  40. # these emails are ignored when computing stats
  41. # IGNORED_EMAILS = ["my_email@domain.com"]
  42. # By default, new aliases must end with ".{random_word}". This is to avoid a person taking all "nice" aliases.
  43. # this option doesn't make sense in self-hosted. Set this variable to disable this option.
  44. # DISABLE_ALIAS_SUFFIX=1
  45. # If you want to use another MTA to send email, you could set the address of your MTA here
  46. # By default, emails are sent using the the same Postfix server that receives emails
  47. # POSTFIX_SERVER=my-postfix.com
  48. # the DKIM private key used to compute DKIM-Signature
  49. DKIM_PRIVATE_KEY_PATH=local_data/dkim.key
  50. # the DKIM public key used to setup custom domain DKIM
  51. DKIM_PUBLIC_KEY_PATH=local_data/dkim.pub.key
  52. # <<< END Email related settings >>>
  53. # <<< Database >>>
  54. # delete and recreate sqlite database, for local development
  55. # RESET_DB=true
  56. # DB Connection
  57. # Local SQLite database
  58. DB_URI=sqlite:///db.sqlite
  59. # Postgres
  60. # DB_URI=postgresql://myuser:mypassword@sl-db:5432/simplelogin
  61. # <<< END Database >>>
  62. # Flask
  63. FLASK_SECRET=secret
  64. # <<< AWS >>>
  65. BUCKET=to_fill
  66. AWS_ACCESS_KEY_ID=to_fill
  67. AWS_SECRET_ACCESS_KEY=to_fill
  68. # Cloudwatch
  69. # ENABLE_CLOUDWATCH=true
  70. # CLOUDWATCH_LOG_GROUP=local
  71. # CLOUDWATCH_LOG_STREAM=local
  72. # <<< END AWS >>>
  73. # Paddle
  74. PADDLE_VENDOR_ID=123
  75. PADDLE_MONTHLY_PRODUCT_ID=123
  76. PADDLE_YEARLY_PRODUCT_ID=123
  77. PADDLE_PUBLIC_KEY_PATH=local_data/paddle.key.pub
  78. PADDLE_AUTH_CODE=123
  79. # OpenId key
  80. OPENID_PRIVATE_KEY_PATH=local_data/jwtRS256.key
  81. OPENID_PUBLIC_KEY_PATH=local_data/jwtRS256.key.pub
  82. # Words to generate random email alias
  83. WORDS_FILE_PATH=local_data/words.txt
  84. # Github
  85. GITHUB_CLIENT_ID=to_fill
  86. GITHUB_CLIENT_SECRET=to_fill
  87. # Google
  88. GOOGLE_CLIENT_ID=to_fill
  89. GOOGLE_CLIENT_SECRET=to_fill
  90. # Facebook
  91. FACEBOOK_CLIENT_ID=to_fill
  92. FACEBOOK_CLIENT_SECRET=to_fill
  93. # Flask profiler
  94. # FLASK_PROFILER_PATH=/tmp/flask-profiler.sql
  95. # FLASK_PROFILER_PASSWORD=password
  96. # Where to store GPG Keyring
  97. # GNUPGHOME=/tmp/gnupg
  98. # By default, files are uploaded to s3
  99. # Set this variable to use the local "static/upload/" directory instead
  100. # LOCAL_FILE_UPLOAD=true
  101. # The landing page
  102. # LANDING_PAGE_URL=https://simplelogin.io
  103. # The status page
  104. # STATUS_PAGE_URL=https://status.simplelogin.io
  105. # Used when querying info on Apple API
  106. # APPLE_API_SECRET=secret
  107. # MACAPP_APPLE_API_SECRET=secret
  108. # Disable onboarding emails
  109. # For self-hosted instance
  110. DISABLE_ONBOARDING=true
  111. # By default use postfix port 25. This param is used to override the Postfix port,
  112. # useful when using another SMTP server when developing locally
  113. # POSTFIX_PORT=1025
  114. # set the 2 below variables to enable hCaptcha
  115. # HCAPTCHA_SECRET=very_long_string
  116. # HCAPTCHA_SITEKEY=00000000-0000-0000-0000-000000000000
  117. # Set the 2 below variables to enable Plausible Analytics
  118. # PLAUSIBLE_HOST=https://plausible.io
  119. # PLAUSIBLE_DOMAIN=yourdomain.com
  120. # Spamassassin server
  121. # SPAMASSASSIN_HOST = 127.0.0.1
  122. # if set, used to sign the forwarding emails
  123. # PGP_SENDER_PRIVATE_KEY_PATH=local_data/private-pgp.asc