add extra config param for nginx

This commit is contained in:
ibizaman 2025-06-23 23:07:23 +02:00 committed by Pierre Penninckx
parent 674043d83f
commit 9af3f2b942

View file

@ -49,6 +49,12 @@ let
subject = ["group:service_user"];
}]'';
};
extraConfig = lib.mkOption {
type = lib.types.lines;
default = "";
description = "Extra config to add to the root / location. Strings separated by newlines.";
};
};
};
in
@ -136,6 +142,7 @@ in
proxy_pass ${c.upstream};
''
+ c.extraConfig
+ lib.optionalString (c.authEndpoint != null) ''
auth_request /authelia;
auth_request_set $user $upstream_http_remote_user;