diff --git a/modules/services/authentik.nix b/modules/services/authentik.nix index fc951d97..67314897 100644 --- a/modules/services/authentik.nix +++ b/modules/services/authentik.nix @@ -122,14 +122,14 @@ in }; systemd.services.authentik.after = cfg.after; systemd.services.authentik-ldap.after = [ "authentik-config.service" ]; - systemd.services.authentik-ldap.environment.AUTHENTIK_LISTEN__METRICS = "[::1]:9302"; + systemd.services.authentik-ldap.environment.AUTHENTIK_LISTEN__METRICS = mkForce "[::1]:9302"; services.authentik-ldap = { environmentFile = "${environmentFileDir}/ldap_config"; enable = true; }; systemd.services.authentik-proxy.after = [ "authentik-config.service" ]; - systemd.services.authentik-proxy.environment.AUTHENTIK_LISTEN__HTTP = "[::1]:9001"; - systemd.services.authentik-proxy.environment.AUTHENTIK_LISTEN__METRICS = "[::1]:9301"; + systemd.services.authentik-proxy.environment.AUTHENTIK_LISTEN__HTTP = mkForce "[::1]:9001"; + systemd.services.authentik-proxy.environment.AUTHENTIK_LISTEN__METRICS = mkForce "[::1]:9301"; services.authentik-proxy = { enable = true; environmentFile = "${environmentFileDir}/proxy_config";