From 93be0521d151be27290339f40d6d0e048c7d3041 Mon Sep 17 00:00:00 2001 From: Joaquim d'Souza Date: Mon, 11 Mar 2024 11:38:35 +0100 Subject: [PATCH] feat: load email auth vars from environment --- local_intelligence_hub/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local_intelligence_hub/settings.py b/local_intelligence_hub/settings.py index 169720024..72eb2da30 100644 --- a/local_intelligence_hub/settings.py +++ b/local_intelligence_hub/settings.py @@ -231,6 +231,9 @@ # Sending messages EMAIL_HOST = env.str("EMAIL_HOST", "localhost") EMAIL_PORT = env.str("EMAIL_PORT", 1025) +EMAIL_HOST_USER = env.str("EMAIL_HOST_USER", False) +EMAIL_HOST_PASSWORD = env.str("EMAIL_HOST_PASSWORD", False) +EMAIL_USE_TLS = env.bool("EMAIL_USE_TLS", False) DEFAULT_FROM_EMAIL = env.str("DEFAULT_FROM_EMAIL", "webmaster@localhost") POSTCODES_IO_URL = "https://postcodes.commonknowledge.coop"