Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix issue with config loading

Uku Taht6eb982f7fd90
diff --git a/config/runtime.exs b/config/runtime.exs
index da73e0ff2c..b69d5434a1 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -232,8 +232,8 @@ case mailer_adapter do
password: get_var_from_path_or_env(config_dir, "SMTP_USER_PWD"),
tls: :if_available,
allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"],
- ssl: get_var_from_path_or_env(config_dir, "SMTP_HOST_SSL_ENABLED", false),
- retries: get_var_from_path_or_env(config_dir, "SMTP_RETRIES", 2),
+ ssl: get_var_from_path_or_env(config_dir, "SMTP_HOST_SSL_ENABLED") || false,
+ retries: get_var_from_path_or_env(config_dir, "SMTP_RETRIES") || 2,
no_mx_lookups: get_var_from_path_or_env(config_dir, "SMTP_MX_LOOKUPS_ENABLED") || true
"Bamboo.LocalAdapter" ->