summary refs log tree commit diff
path: root/nixos/modules/services/security/oauth2_proxy_nginx.nix
diff options
context:
space:
mode:
authorMichishige Kaito <me@mkaito.com>2018-06-29 16:23:24 +0100
committerMichishige Kaito <me@mkaito.com>2018-06-29 16:23:24 +0100
commit2fec848254381ec5b6a1fca6f45f86f370d32643 (patch)
treecb3e5089ebf5fa0a0069e0071d75064f6f48603e /nixos/modules/services/security/oauth2_proxy_nginx.nix
parent4a72999c75a7d94ebb1fb9c9dd160541a45b44e5 (diff)
downloadnixpkgs-2fec848254381ec5b6a1fca6f45f86f370d32643.tar
nixpkgs-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.gz
nixpkgs-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.bz2
nixpkgs-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.lz
nixpkgs-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.xz
nixpkgs-2fec848254381ec5b6a1fca6f45f86f370d32643.tar.zst
nixpkgs-2fec848254381ec5b6a1fca6f45f86f370d32643.zip
fixup! oauth2_proxy: add nginx vhost module
Diffstat (limited to 'nixos/modules/services/security/oauth2_proxy_nginx.nix')
-rw-r--r--nixos/modules/services/security/oauth2_proxy_nginx.nix6
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 80be28d9161..2aa2c57fd22 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)) {