fix regex as per @lbogdan in https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3121#discussion_r1621959578
This commit is contained in:
parent
013310ded0
commit
2e528348b7
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ set $FORCE "";
|
||||||
if ($scheme = "http") {
|
if ($scheme = "http") {
|
||||||
set $FORCE 'H';
|
set $FORCE 'H';
|
||||||
}
|
}
|
||||||
if ($request_uri !~ "^\/.well-known\/acme-challenge\/(.*)") {
|
if ($request_uri !~ "^\/\.well-known\/acme-challenge\/(.*)") {
|
||||||
set $FORCE "${FORCE}D";
|
set $FORCE "${FORCE}D";
|
||||||
}
|
}
|
||||||
# If we are http and outside the LetsEncrypt directories redirect to https via 301
|
# If we are http and outside the LetsEncrypt directories redirect to https via 301
|
||||||
|
|
Loading…
Reference in a new issue