Skip to content

Commit

Permalink
configure emails
Browse files Browse the repository at this point in the history
  • Loading branch information
david58 committed Nov 21, 2024
1 parent 2a23c1a commit 552a3c0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions testovac/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ def requiredenv(name):
)
return os.environ.get(name)

SENDFILE_BACKEND = 'sendfile.backends.nginx'
SENDFILE_ROOT = '/home/app/web/'
SENDFILE_URL = '/protected-files'

SENDFILE_BACKEND = "sendfile.backends.nginx"
SENDFILE_ROOT = "/home/app/web/"
SENDFILE_URL = "/protected-files"


DEBUG = False
SECRET_KEY = requiredenv("TESTOVAC_FRONT_SECRET_KEY")
ALLOWED_HOSTS = requiredenv("TESTOVAC_FRONT_ALLOWED_HOSTS").split(" ")


EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"

EMAIL_HOST = "smtp-out.default.svc.cluster.local"
DEFAULT_FROM_EMAIL = "[email protected]"
SERVER_EMAIL = "[email protected]"

0 comments on commit 552a3c0

Please sign in to comment.