Skip to content

Commit 7065936

Browse files
author
Shane St Savage
committed
Set auth_request off for all acme challenge locations
Adds missing `auth_request off;` to a few `.well-known/acme-challenge` location blocks. This is needed to allow unrestricted access to `.well-known/acme-challenge` files on servers where `auth_request` is otherwise globally applied. See #1409, nginx-proxy/acme-companion#570
1 parent 5c10304 commit 7065936

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nginx.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ server {
865865
{{- if $globals.config.acme_http_challenge_accept_unknown_host }}
866866
location ^~ /.well-known/acme-challenge/ {
867867
auth_basic off;
868+
auth_request off;
868869
allow all;
869870
root /usr/share/nginx/html;
870871
try_files $uri =404;
@@ -970,6 +971,7 @@ server {
970971
{{- if (and (eq $vhost.https_method "noredirect") $vhost.acme_http_challenge_enabled) }}
971972
location /.well-known/acme-challenge/ {
972973
auth_basic off;
974+
auth_request off;
973975
allow all;
974976
root /usr/share/nginx/html;
975977
try_files $uri =404;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy