Skip to content

Commit

Permalink
Add support to specify EMAIL password and TLS (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
timeu committed Feb 29, 2024
1 parent 52d9eb8 commit 6d95e59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arapheno/arapheno/settings/prod.py
Expand Up @@ -20,7 +20,7 @@
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.environ.get('POSTGRES_DB','postgres'),
'USER': os.environ.get('POSTGRES_USER','postgres'),
'PASSWORD': os.environ.get('POSTGRES_PASSWORD', None),
'PASSWORD': os.environ.get('POSTGRES_PASSWORD', None),
'HOST': os.environ.get('POSTGRES_HOST','db'),
'PORT': 5432,
}
Expand All @@ -29,3 +29,6 @@
EMAIL_HOST = os.environ["EMAIL_HOST"]
EMAIL_PORT = os.environ.get("EMAIL_PORT",25)
EMAIL_HOST_USER = os.environ["EMAIL_USER"]
EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_HOST_PASSWORD","")
EMAIL_USE_TLS = os.environ.get("EMAIL_USE_TLS",False)
SERVER_EMAIL = os.environ.get("SERVER_EMAIL","root@localhost")

0 comments on commit 6d95e59

Please sign in to comment.