Merge pull request #286454 from dotlambda/nginx-acme-auth_request-off

nixos/nginx: turn auth_request off for ACME challenge
This commit is contained in:
Robert Schütz 2024-02-07 15:08:08 +00:00 committed by GitHub
commit 743b095b5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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};
}
''}