add extra config param for nginx
This commit is contained in:
parent
674043d83f
commit
6b80b256ea
1 changed files with 7 additions and 0 deletions
|
|
@ -49,6 +49,12 @@ let
|
||||||
subject = ["group:service_user"];
|
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
|
in
|
||||||
|
|
@ -136,6 +142,7 @@ in
|
||||||
|
|
||||||
proxy_pass ${c.upstream};
|
proxy_pass ${c.upstream};
|
||||||
''
|
''
|
||||||
|
+ c.extraConfig
|
||||||
+ lib.optionalString (c.authEndpoint != null) ''
|
+ lib.optionalString (c.authEndpoint != null) ''
|
||||||
auth_request /authelia;
|
auth_request /authelia;
|
||||||
auth_request_set $user $upstream_http_remote_user;
|
auth_request_set $user $upstream_http_remote_user;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue