Make database, oauth, smtp server, mail verificaiton configurable in .env
This commit is contained in:
parent
9b5fe1627d
commit
712d9a843e
8 changed files with 109 additions and 31 deletions
36
.env.example
36
.env.example
|
|
@ -14,3 +14,39 @@ ADMINS=admin:photos-admin@lists.crans.org
|
|||
|
||||
# Email address used as sender for server emails
|
||||
SERVER_EMAIL=photos@crans.org
|
||||
|
||||
# Email verification: 'mandatory', 'optional', or 'none'
|
||||
EMAIL_VERIFICATION=mandatory
|
||||
|
||||
# Mail server settings
|
||||
SMTP_HOST=localhost
|
||||
SMTP_PORT=25
|
||||
#SMTP_USER=
|
||||
#SMTP_PASSWORD=
|
||||
SMTP_USE_TLS=False
|
||||
|
||||
# OAuth2 settings
|
||||
# Enable OAuth2 login
|
||||
OAUTH_ENABLED=False
|
||||
# Disable normal username/password login (requires OAUTH_ENABLED=True)
|
||||
OAUTH_ONLY=False
|
||||
# OAuth2 server base URL (e.g. auth.example.com)
|
||||
#OAUTH_SERVER_URL=
|
||||
# OAuth2 app credentials
|
||||
#OAUTH_CLIENT_ID=
|
||||
#OAUTH_CLIENT_SECRET=
|
||||
# Button appearance on the login page
|
||||
#OAUTH_BUTTON_TEXT=Login with OAuth
|
||||
#OAUTH_BUTTON_IMAGE=
|
||||
# Space-separated OAuth2 scopes
|
||||
#OAUTH_SCOPE=openid profile email
|
||||
|
||||
# Database engine: 'sqlite' or 'postgres'
|
||||
DB_ENGINE=sqlite
|
||||
|
||||
# PostgreSQL settings (only used when DB_ENGINE=postgres)
|
||||
#DB_NAME=photo21
|
||||
#DB_USER=photo21
|
||||
#DB_PASSWORD=
|
||||
#DB_HOST=localhost
|
||||
#DB_PORT=5432
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue