git.iko.soy/typeable/nixpkgs
on master help sign in
fixup! oauth2_proxy: add nginx vhost module
commit2fec848254381ec5b6a1fca6f45f86f370d32643 authorMichishige Kaito <me@mkaito.com> dateFri 29 Jun 2018, 16:23 (8 years ago) parent4a72999
1 file changed+6
nixos/modules/services/security/oauth2_proxy_nginx.nix+6
nixos/modules/services/security/oauth2_proxy_nginx.nix+6
@@ -8,10 +8,16 @@ in
88 proxy = mkOption {
99 type = types.string;
1010 default = config.services.oauth2_proxy.httpAddress;
11+ description = ''
12+ The address of the reverse proxy endpoint for oauth2_proxy
13+ '';
1114 };
1215 virtualHosts = mkOption {
1316 type = types.listOf types.string;
1417 default = [];
18+ description = ''
19+ A list of nginx virtual hosts to put behind the oauth2 proxy
20+ '';
1521 };
1622 };
1723 config.services.oauth2_proxy = mkIf (cfg.virtualHosts != [] && (hasPrefix "127.0.0.1:" cfg.proxy)) {