From ccd31d450f93a173693f7ee35d4fffa208c5780c Mon Sep 17 00:00:00 2001 From: kemboi22 Date: Fri, 31 May 2024 12:43:52 +0300 Subject: [PATCH] Added SMTP Encryption --- .../actions/configure-module/10configure_next_config_vars | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imageroot/actions/configure-module/10configure_next_config_vars b/imageroot/actions/configure-module/10configure_next_config_vars index 57bb440..14dc4a2 100755 --- a/imageroot/actions/configure-module/10configure_next_config_vars +++ b/imageroot/actions/configure-module/10configure_next_config_vars @@ -35,6 +35,7 @@ SMTP_PASSWORD=smtp_settings['password'] SMTP_FROM_NAME=f'"Documenso" <{smtp_settings["username"]}>' # REQUIRED: Defines the email address to use as the from address. SMTP_FROM_ADDRESS=smtp_settings['username'] +SMTP_ENCRYPTION=smtp_settings['encrypt_smtp'] NEXTAUTH_URL = data.get("NEXTAUTH_URL", f'https://{host}') @@ -58,14 +59,14 @@ NEXT_PRIVATE_UPLOAD_BUCKET = data.get("NEXT_PRIVATE_UPLOAD_BUCKET", "") NEXT_PRIVATE_UPLOAD_ACCESS_KEY_ID = data.get("NEXT_PRIVATE_UPLOAD_ACCESS_KEY_ID", "") NEXT_PRIVATE_UPLOAD_SECRET_ACCESS_KEY = data.get("NEXT_PRIVATE_UPLOAD_SECRET_ACCESS_KEY", "") -NEXT_PRIVATE_SMTP_TRANSPORT = data.get("NEXT_PRIVATE_SMTP_TRANSPORT", "") +NEXT_PRIVATE_SMTP_TRANSPORT = data.get("NEXT_PRIVATE_SMTP_TRANSPORT", "smtp-auth") NEXT_PRIVATE_SMTP_HOST = data.get("NEXT_PRIVATE_SMTP_HOST", SMTP_HOST) NEXT_PRIVATE_SMTP_PORT = data.get("NEXT_PRIVATE_SMTP_PORT", SMTP_PORT) NEXT_PRIVATE_SMTP_USERNAME = data.get("NEXT_PRIVATE_SMTP_USERNAME", SMTP_USERNAME) NEXT_PRIVATE_SMTP_PASSWORD = data.get("NEXT_PRIVATE_SMTP_PASSWORD", SMTP_PASSWORD) NEXT_PRIVATE_SMTP_APIKEY_USER = data.get("NEXT_PRIVATE_SMTP_APIKEY_USER", "") NEXT_PRIVATE_SMTP_APIKEY = data.get("NEXT_PRIVATE_SMTP_APIKEY", "") -NEXT_PRIVATE_SMTP_SECURE = data.get("NEXT_PRIVATE_SMTP_SECURE", "") +NEXT_PRIVATE_SMTP_SECURE = data.get("NEXT_PRIVATE_SMTP_SECURE", SMTP_ENCRYPTION) NEXT_PRIVATE_SMTP_FROM_NAME = data.get("NEXT_PRIVATE_SMTP_FROM_NAME", SMTP_FROM_NAME) NEXT_PRIVATE_SMTP_FROM_ADDRESS = data.get("NEXT_PRIVATE_SMTP_FROM_ADDRESS", SMTP_FROM_ADDRESS)