From 2fec848254381ec5b6a1fca6f45f86f370d32643 Mon Sep 17 00:00:00 2001 From: Michishige Kaito Date: Fri, 29 Jun 2018 16:23:24 +0100 Subject: fixup! oauth2_proxy: add nginx vhost module --- nixos/modules/services/security/oauth2_proxy_nginx.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nixos/modules/services/security/oauth2_proxy_nginx.nix') 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)) { -- cgit 1.4.1