From 3d0edfbe0eeaa0b247c633a3e11a209539c81e01 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 1 Dec 2023 13:15:58 -0800 Subject: [PATCH] Oh...it literally wants "TRUE", not 1 --- authentik-container.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/authentik-container.nix b/authentik-container.nix index b61ddf4..7b1126a 100644 --- a/authentik-container.nix +++ b/authentik-container.nix @@ -139,9 +139,10 @@ in { AUTHENTIK_EMAIL__USERNAME = cfg.smtp.user; AUTHENTIK_EMAIL__PASSWORD = removeSuffix "\n" (readFile cfg.smtp.password-file); - AUTHENTIK_EMAIL__USE_SSL = cfg.smtp.port == 465; - AUTHENTIK_EMAIL__USE_TLS = (cfg.smtp.port == 25) - || (cfg.smtp.port == 587); + AUTHENTIK_EMAIL__USE_SSL = + optionalString (cfg.smtp.port == 465) "TRUE"; + AUTHENTIK_EMAIL__USE_TLS = + optionalString (cfg.smtp.port == 25 || cfg.smtp.port == 587) "TRUE"; AUTHENTIK_EMAIL__TIMEOUT = 10; AUTHENTIK_EMAIL__FROM = cfg.smtp.from-address; };