Merge pull request #195745 from virusdave/patch-1
This commit is contained in:
commit
67e4972c5d
1 changed files with 4 additions and 1 deletions
|
@ -275,7 +275,10 @@ let
|
||||||
redirectListen = filter (x: !x.ssl) defaultListen;
|
redirectListen = filter (x: !x.ssl) defaultListen;
|
||||||
|
|
||||||
acmeLocation = optionalString (vhost.enableACME || vhost.useACMEHost != null) ''
|
acmeLocation = optionalString (vhost.enableACME || vhost.useACMEHost != null) ''
|
||||||
location /.well-known/acme-challenge {
|
# Rule for legitimate ACME Challenge requests (like /.well-known/acme-challenge/xxxxxxxxx)
|
||||||
|
# We use ^~ here, so that we don't check any regexes (which could
|
||||||
|
# otherwise easily override this intended match accidentally).
|
||||||
|
location ^~ /.well-known/acme-challenge/ {
|
||||||
${optionalString (vhost.acmeFallbackHost != null) "try_files $uri @acme-fallback;"}
|
${optionalString (vhost.acmeFallbackHost != null) "try_files $uri @acme-fallback;"}
|
||||||
${optionalString (vhost.acmeRoot != null) "root ${vhost.acmeRoot};"}
|
${optionalString (vhost.acmeRoot != null) "root ${vhost.acmeRoot};"}
|
||||||
auth_basic off;
|
auth_basic off;
|
||||||
|
|
Loading…
Reference in a new issue