MyNixOS website logo
option

services.oauth2-proxy.nginx.virtualHosts

Nginx virtual hosts to put behind the oauth2 proxy. You can exclude specific locations by setting auth_request off; in the locations extraConfig setting.

Declarations
Type
(attribute set of (submodule)) or (list of string) convertible to it
Default
{ }
Example
{
  "protected.foo.com" = {
    allowed_emails = [
      "[email protected]"
    ];
    allowed_groups = [
      "admins"
    ];
  };
}