From 96e004a541f6f42ceb983a2602821639a5858506 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Tue, 3 Dec 2024 08:45:45 +0100 Subject: [PATCH] authelia: tmp change --- machines/gerd/services/authelia/authelia-nginx.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/machines/gerd/services/authelia/authelia-nginx.nix b/machines/gerd/services/authelia/authelia-nginx.nix index 35346fc..96d08f2 100644 --- a/machines/gerd/services/authelia/authelia-nginx.nix +++ b/machines/gerd/services/authelia/authelia-nginx.nix @@ -76,6 +76,9 @@ let error_page 401 =302 https://${config.mine.shared.settings.authelia.domain}/?rd=$target_url; ''; in { + # TODO: fix this + mine.shared.lib.authelia.autheliaLocation = autheliaLocation; + mine.shared.lib.authelia.mkProtectedWebsite = { vhostConfig, endpoint ? "/" }: lib.recursiveUpdate vhostConfig { extraConfig = (lib.attrByPath [ "extraConfig" ] "" vhostConfig) + "\n" + "include ${autheliaLocation};"; locations."${endpoint}" = config.mine.shared.lib.authelia.mkProtectedLocation (lib.attrByPath [ "locations" endpoint ] {} vhostConfig);