1
0
Fork 0

only enable autheliaProtect in deluge if enabled

This commit is contained in:
ibizaman 2023-12-26 23:11:50 -08:00 committed by Pierre Penninckx
parent c1c738b1a4
commit d7411a79b7

View file

@ -170,7 +170,7 @@ in
restartUnits = [ "deluged.service" "delugeweb.service" ]; restartUnits = [ "deluged.service" "delugeweb.service" ];
}; };
shb.nginx.autheliaProtect = [ shb.nginx.autheliaProtect = lib.mkIf config.shb.authelia.enable [
{ {
inherit (cfg) subdomain domain authEndpoint; inherit (cfg) subdomain domain authEndpoint;
upstream = "http://127.0.0.1:${toString config.services.deluge.web.port}"; upstream = "http://127.0.0.1:${toString config.services.deluge.web.port}";