diff options
author | Vincent Bernat <vincent@bernat.ch> | 2022-12-03 18:58:33 +0100 |
---|---|---|
committer | Vincent Bernat <vincent@bernat.ch> | 2022-12-18 12:21:27 +0100 |
commit | fc39b5ecc8bb862026facc1c96b176ffda7adaaa (patch) | |
tree | 036b06f36884be78d90341a3a0c68bc0341e0409 /pkgs/servers/http | |
parent | 04f574a1c0fde90b51bf68198e2297ca4e7cccf4 (diff) |
nginx: make global redirect vhost option accept exceptions
By moving the return into a location directive, one can provide exceptions by adding locations. This is similar to what the forceSSL option does.
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/nginx/generic.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index a18b771aa1c37..7d301695cac06 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -176,7 +176,7 @@ stdenv.mkDerivation { passthru = { modules = modules; tests = { - inherit (nixosTests) nginx nginx-auth nginx-etag nginx-http3 nginx-pubhtml nginx-sandbox nginx-sso; + inherit (nixosTests) nginx nginx-auth nginx-etag nginx-globalredirect nginx-http3 nginx-pubhtml nginx-sandbox nginx-sso; variants = lib.recurseIntoAttrs nixosTests.nginx-variants; acme-integration = nixosTests.acme; } // passthru.tests; |