nixos/nginx: turn auth_request off for ACME challenge

This is e.g. necessary when using tailscale-nginx-auth.
This commit is contained in:
Robert Schütz 2024-02-05 00:31:37 -08:00
parent e92b601588
commit 1dd5f2b1f9

View file

@ -361,10 +361,12 @@ let
${optionalString (vhost.acmeFallbackHost != null) "try_files $uri @acme-fallback;"}
${optionalString (vhost.acmeRoot != null) "root ${vhost.acmeRoot};"}
auth_basic off;
auth_request off;
}
${optionalString (vhost.acmeFallbackHost != null) ''
location @acme-fallback {
auth_basic off;
auth_request off;
proxy_pass http://${vhost.acmeFallbackHost};
}
''}