mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: configure SMTP email settings using environment variables
This commit is contained in:
@@ -119,6 +119,12 @@ SIMPLE_JWT = {
|
||||
|
||||
# Email config
|
||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
||||
EMAIL_HOST = env("EMAIL_HOST")
|
||||
EMAIL_PORT = env("EMAIL_PORT")
|
||||
EMAIL_USE_TLS = not DEBUG # false for local, true for production
|
||||
EMAIL_USE_SSL = False # since we enforce TLS
|
||||
EMAIL_HOST_USER = env("EMAIL_HOST_USER")
|
||||
EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD")
|
||||
FROM_EMAIL = env("FROM_EMAIL")
|
||||
|
||||
FRONTEND_URL = env("FRONTEND_URL")
|
||||
|
||||
Reference in New Issue
Block a user