From 21ead92f0d996b37db42ce50af6cb26017258b27 Mon Sep 17 00:00:00 2001 From: Igor Santos Date: Thu, 24 Oct 2024 13:12:09 -0300 Subject: [PATCH] fix(nossas): add EMAIL django settings production --- app/org_nossas/nossas/settings/production.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/org_nossas/nossas/settings/production.py b/app/org_nossas/nossas/settings/production.py index 94887368..71b3c2b1 100644 --- a/app/org_nossas/nossas/settings/production.py +++ b/app/org_nossas/nossas/settings/production.py @@ -42,4 +42,20 @@ MEDIA_URL = f"https://{AWS_S3_CUSTOM_DOMAIN}/{PUBLIC_MEDIA_LOCATION}/" -DEFAULT_FILE_STORAGE = "project.storages.PublicMediaStorage" \ No newline at end of file +DEFAULT_FILE_STORAGE = "project.storages.PublicMediaStorage" + + +# Configurações de e-mail +DEFAULT_FROM_EMAIL = env("DEFAULT_FROM_EMAIL", default="Suporte ") + +EMAIL_HOST = env("SMTP_HOST", default="localhost") + +EMAIL_PORT = env("SMTP_PORT", default=1025) + +EMAIL_HOST_USER = env("SMTP_USER", default="") + +EMAIL_HOST_PASSWORD = env("SMTP_PASS", default="") + +EMAIL_USE_TLS = env("SMTP_USE_TLS", default=False) + +EMAIL_USE_SSL = env("SMTP_USE_SSL", default=False) \ No newline at end of file