2019-07-12 17:34:29 +08:00
|
|
|
# Server url
|
2019-08-17 18:26:37 +08:00
|
|
|
URL=http://localhost:7777
|
2019-07-12 17:34:29 +08:00
|
|
|
|
2019-12-17 01:30:17 +08:00
|
|
|
# If you want to enable sentry for error tracking, put your sentry dsn here.
|
|
|
|
# SENTRY_DSN=your_sentry_dsn
|
2019-07-22 18:14:02 +08:00
|
|
|
|
2020-02-05 15:38:29 +08:00
|
|
|
# Possible to use another sentry project for the front-end to avoid noises
|
|
|
|
# If not set, fallback to SENTRY_DSN
|
|
|
|
# SENTRY_FRONT_END_DSN=your_sentry_dsn
|
|
|
|
|
2019-12-17 01:36:59 +08:00
|
|
|
# apply colored log to facilitate local development
|
|
|
|
# COLOR_LOG=true
|
2019-12-10 05:18:41 +08:00
|
|
|
|
2019-12-15 16:01:07 +08:00
|
|
|
# <<< Email related settings >>>
|
2019-12-17 01:36:59 +08:00
|
|
|
# Only print email content, not sending it, for local development
|
|
|
|
# NOT_SEND_EMAIL=true
|
|
|
|
|
2019-12-15 16:01:07 +08:00
|
|
|
# domain used to create alias
|
2019-07-12 17:34:29 +08:00
|
|
|
EMAIL_DOMAIN=sl.local
|
2019-12-17 01:36:59 +08:00
|
|
|
|
2020-05-07 19:28:04 +08:00
|
|
|
# Allow SimpleLogin to enforce SPF by using the extra headers from postfix
|
|
|
|
ENFORCE_SPF=true
|
|
|
|
|
2020-01-22 16:46:26 +08:00
|
|
|
# other domains that can be used to create aliases, in addition to EMAIL_DOMAIN
|
|
|
|
OTHER_ALIAS_DOMAINS=["domain1.com", "domain2.com"]
|
|
|
|
|
2020-04-16 04:36:50 +08:00
|
|
|
# the alias domain used when creating the first alias for user, default to EMAIL_DOMAIN if not set
|
|
|
|
# FIRST_ALIAS_DOMAIN = another-domain.com
|
|
|
|
|
2019-12-15 16:01:07 +08:00
|
|
|
# transactional email is sent from this email address
|
2019-07-12 17:34:29 +08:00
|
|
|
SUPPORT_EMAIL=support@sl.local
|
2020-01-28 10:29:04 +08:00
|
|
|
SUPPORT_NAME=Son from SimpleLogin
|
2019-12-17 01:36:59 +08:00
|
|
|
|
|
|
|
# to receive general stats.
|
|
|
|
# ADMIN_EMAIL=admin@sl.local
|
|
|
|
|
2019-07-22 18:14:02 +08:00
|
|
|
# Max number emails user can generate for free plan
|
2020-01-28 12:50:25 +08:00
|
|
|
MAX_NB_EMAIL_FREE_PLAN=5
|
|
|
|
|
|
|
|
# Close registration. Avoid people accidentally creating new account on a self-hosted SimpleLogin
|
|
|
|
# DISABLE_REGISTRATION=1
|
2019-12-17 01:40:23 +08:00
|
|
|
|
2019-12-15 16:01:07 +08:00
|
|
|
# custom domain needs to point to these MX servers
|
2019-12-02 08:11:19 +08:00
|
|
|
EMAIL_SERVERS_WITH_PRIORITY=[(10, "email.hostname.")]
|
2019-12-17 01:40:23 +08:00
|
|
|
|
2019-12-15 16:09:37 +08:00
|
|
|
# these emails are ignored when computing stats
|
2019-12-17 01:40:23 +08:00
|
|
|
# IGNORED_EMAILS = ["my_email@domain.com"]
|
2019-12-18 00:48:06 +08:00
|
|
|
|
2020-01-20 16:23:17 +08:00
|
|
|
# By default, new aliases must end with ".{random_word}". This is to avoid a person taking all "nice" aliases.
|
|
|
|
# this option doesn't make sense in self-hosted. Set this variable to disable this option.
|
|
|
|
# DISABLE_ALIAS_SUFFIX=1
|
|
|
|
|
2020-01-23 16:17:40 +08:00
|
|
|
# If you want to use another MTA to send email, you could set the address of your MTA here
|
|
|
|
# By default, emails are sent using the the same Postfix server that receives emails
|
|
|
|
# POSTFIX_SERVER=my-postfix.com
|
|
|
|
|
2019-12-18 00:48:06 +08:00
|
|
|
# the DKIM private key used to compute DKIM-Signature
|
|
|
|
DKIM_PRIVATE_KEY_PATH=local_data/dkim.key
|
2019-12-28 06:44:32 +08:00
|
|
|
|
|
|
|
# the DKIM public key used to setup custom domain DKIM
|
|
|
|
DKIM_PUBLIC_KEY_PATH=local_data/dkim.pub.key
|
2019-12-17 01:40:23 +08:00
|
|
|
# <<< END Email related settings >>>
|
|
|
|
|
2019-07-22 18:14:02 +08:00
|
|
|
|
2019-12-15 16:01:07 +08:00
|
|
|
# <<< Database >>>
|
2019-12-17 01:40:23 +08:00
|
|
|
# delete and recreate sqlite database, for local development
|
2019-12-18 00:48:06 +08:00
|
|
|
# RESET_DB=true
|
2019-12-17 01:40:23 +08:00
|
|
|
|
|
|
|
# DB Connection
|
2019-12-19 00:10:10 +08:00
|
|
|
# Local SQLite database
|
2019-07-12 17:34:29 +08:00
|
|
|
DB_URI=sqlite:///db.sqlite
|
2019-12-19 00:10:10 +08:00
|
|
|
# Postgres
|
|
|
|
# DB_URI=postgresql://myuser:mypassword@sl-db:5432/simplelogin
|
2019-12-17 01:40:23 +08:00
|
|
|
# <<< END Database >>>
|
2019-07-12 17:34:29 +08:00
|
|
|
|
2019-07-22 18:14:02 +08:00
|
|
|
# Flask
|
2019-07-12 17:34:29 +08:00
|
|
|
FLASK_SECRET=secret
|
|
|
|
|
2019-12-17 01:40:23 +08:00
|
|
|
# <<< AWS >>>
|
2019-07-12 17:34:29 +08:00
|
|
|
BUCKET=to_fill
|
2019-07-06 22:39:45 +08:00
|
|
|
AWS_ACCESS_KEY_ID=to_fill
|
|
|
|
AWS_SECRET_ACCESS_KEY=to_fill
|
|
|
|
|
2019-07-12 17:34:29 +08:00
|
|
|
# Cloudwatch
|
2019-07-22 18:19:12 +08:00
|
|
|
# ENABLE_CLOUDWATCH=true
|
2019-12-27 18:48:57 +08:00
|
|
|
# CLOUDWATCH_LOG_GROUP=local
|
|
|
|
# CLOUDWATCH_LOG_STREAM=local
|
2019-12-17 01:40:23 +08:00
|
|
|
# <<< END AWS >>>
|
2019-07-12 17:34:29 +08:00
|
|
|
|
2019-12-10 05:18:41 +08:00
|
|
|
# Paddle
|
2020-03-08 17:27:26 +08:00
|
|
|
PADDLE_VENDOR_ID=123
|
|
|
|
PADDLE_MONTHLY_PRODUCT_ID=123
|
|
|
|
PADDLE_YEARLY_PRODUCT_ID=123
|
2019-12-15 02:54:33 +08:00
|
|
|
PADDLE_PUBLIC_KEY_PATH=local_data/paddle.key.pub
|
2020-03-08 17:27:26 +08:00
|
|
|
PADDLE_AUTH_CODE=123
|
2019-12-10 05:18:41 +08:00
|
|
|
|
2019-07-22 18:14:02 +08:00
|
|
|
# OpenId key
|
2019-07-12 16:34:33 +08:00
|
|
|
OPENID_PRIVATE_KEY_PATH=local_data/jwtRS256.key
|
|
|
|
OPENID_PUBLIC_KEY_PATH=local_data/jwtRS256.key.pub
|
2019-07-06 22:39:45 +08:00
|
|
|
|
2019-07-22 18:14:02 +08:00
|
|
|
# Words to generate random email alias
|
2019-07-12 16:34:33 +08:00
|
|
|
WORDS_FILE_PATH=local_data/words.txt
|
2019-07-08 04:44:58 +08:00
|
|
|
|
2019-07-22 18:14:02 +08:00
|
|
|
# Github
|
2019-07-08 04:44:58 +08:00
|
|
|
GITHUB_CLIENT_ID=to_fill
|
2019-07-08 20:11:34 +08:00
|
|
|
GITHUB_CLIENT_SECRET=to_fill
|
|
|
|
|
|
|
|
# Google
|
|
|
|
GOOGLE_CLIENT_ID=to_fill
|
|
|
|
GOOGLE_CLIENT_SECRET=to_fill
|
2019-07-12 17:34:29 +08:00
|
|
|
|
|
|
|
# Facebook
|
|
|
|
FACEBOOK_CLIENT_ID=to_fill
|
|
|
|
FACEBOOK_CLIENT_SECRET=to_fill
|
2020-01-02 05:54:33 +08:00
|
|
|
|
|
|
|
# Flask profiler
|
|
|
|
# FLASK_PROFILER_PATH=/tmp/flask-profiler.sql
|
2020-03-08 18:54:59 +08:00
|
|
|
# FLASK_PROFILER_PASSWORD=password
|
|
|
|
|
|
|
|
# Where to store GPG Keyring
|
|
|
|
# GNUPGHOME=/tmp/gnupg
|
2020-03-13 21:37:48 +08:00
|
|
|
|
|
|
|
# By default, files are uploaded to s3
|
|
|
|
# Set this variable to use the local "static/upload/" directory instead
|
2020-04-10 04:18:03 +08:00
|
|
|
# LOCAL_FILE_UPLOAD=true
|
|
|
|
|
|
|
|
# The landing page
|
2020-04-19 02:47:11 +08:00
|
|
|
# LANDING_PAGE_URL=https://simplelogin.io
|
|
|
|
|
|
|
|
# Used when querying info on Apple API
|
2020-04-29 21:47:03 +08:00
|
|
|
# APPLE_API_SECRET=secret
|
2020-05-10 20:43:41 +08:00
|
|
|
# MACAPP_APPLE_API_SECRET=secret
|
|
|
|
|
|
|
|
# Disable onboarding emails
|
|
|
|
# For self-hosted instance
|
2020-05-22 02:42:25 +08:00
|
|
|
DISABLE_ONBOARDING=true
|
|
|
|
|
|
|
|
# By default use postfix port 25. This param is used to override the Postfix port,
|
|
|
|
# useful when using another SMTP server when developing locally
|
|
|
|
# POSTFIX_PORT=1025
|