From 0318489a9ad8d933b8f6033c661eefd2e2d654f6 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 4 Feb 2025 21:24:40 +0100 Subject: [PATCH] fix: hostname redirect --- modules/services/authentik.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/services/authentik.nix b/modules/services/authentik.nix index 7f62dd0..3784132 100644 --- a/modules/services/authentik.nix +++ b/modules/services/authentik.nix @@ -13,8 +13,8 @@ in enable = lib.mkEnableOption "Enable Authentik module"; envFile = lib.mkOption { - default = ""; - type = lib.types.str; + default = null; + type = lib.types.nullOr lib.types.path; description = '' The path to the env file ''; @@ -108,7 +108,7 @@ in (lib.mkIf cfg.proxy.enable { services.caddy = with cfg.proxy; { virtualHosts."${subdomain}.${domain}".extraConfig = '' - reverse_proxy http://localhost:9000 + reverse_proxy http://host:9000 import cloudflare_${domain} ''; };