fixup! oauth2_proxy: add nginx vhost module
This commit is contained in:
parent
4a72999c75
commit
2fec848254
@ -8,10 +8,16 @@ in
|
|||||||
proxy = mkOption {
|
proxy = mkOption {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
default = config.services.oauth2_proxy.httpAddress;
|
default = config.services.oauth2_proxy.httpAddress;
|
||||||
|
description = ''
|
||||||
|
The address of the reverse proxy endpoint for oauth2_proxy
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
virtualHosts = mkOption {
|
virtualHosts = mkOption {
|
||||||
type = types.listOf types.string;
|
type = types.listOf types.string;
|
||||||
default = [];
|
default = [];
|
||||||
|
description = ''
|
||||||
|
A list of nginx virtual hosts to put behind the oauth2 proxy
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config.services.oauth2_proxy = mkIf (cfg.virtualHosts != [] && (hasPrefix "127.0.0.1:" cfg.proxy)) {
|
config.services.oauth2_proxy = mkIf (cfg.virtualHosts != [] && (hasPrefix "127.0.0.1:" cfg.proxy)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user