diff options
author | Michishige Kaito <me@mkaito.com> | 2018-06-29 16:23:24 +0100 |
---|---|---|
committer | Michishige Kaito <me@mkaito.com> | 2018-06-29 16:23:24 +0100 |
commit | 2fec848254381ec5b6a1fca6f45f86f370d32643 (patch) | |
tree | cb3e5089ebf5fa0a0069e0071d75064f6f48603e /nixos/modules/services/security | |
parent | 4a72999c75a7d94ebb1fb9c9dd160541a45b44e5 (diff) | |
download | nixlib-2fec848254381ec5b6a1fca6f45f86f370d32643.tar nixlib-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.gz nixlib-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.bz2 nixlib-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.lz nixlib-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.xz nixlib-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.zst nixlib-2fec848254381ec5b6a1fca6f45f86f370d32643.zip |
fixup! oauth2_proxy: add nginx vhost module
Diffstat (limited to 'nixos/modules/services/security')
-rw-r--r-- | nixos/modules/services/security/oauth2_proxy_nginx.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/security/oauth2_proxy_nginx.nix b/nixos/modules/services/security/oauth2_proxy_nginx.nix index 80be28d91618..2aa2c57fd22c 100644 --- a/nixos/modules/services/security/oauth2_proxy_nginx.nix +++ b/nixos/modules/services/security/oauth2_proxy_nginx.nix @@ -8,10 +8,16 @@ in proxy = mkOption { type = types.string; default = config.services.oauth2_proxy.httpAddress; + description = '' + The address of the reverse proxy endpoint for oauth2_proxy + ''; }; virtualHosts = mkOption { type = types.listOf types.string; 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)) { |