From d7411a79b73960401c6b69bd80795fdb64e4d04b Mon Sep 17 00:00:00 2001 From: ibizaman Date: Tue, 26 Dec 2023 23:11:50 -0800 Subject: [PATCH] only enable autheliaProtect in deluge if enabled --- modules/services/deluge.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/deluge.nix b/modules/services/deluge.nix index 203514c..860f315 100644 --- a/modules/services/deluge.nix +++ b/modules/services/deluge.nix @@ -170,7 +170,7 @@ in restartUnits = [ "deluged.service" "delugeweb.service" ]; }; - shb.nginx.autheliaProtect = [ + shb.nginx.autheliaProtect = lib.mkIf config.shb.authelia.enable [ { inherit (cfg) subdomain domain authEndpoint; upstream = "http://127.0.0.1:${toString config.services.deluge.web.port}";