mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Merge branch 'develop' into develop
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
# Since force-ssl.conf has now moved to the server section it overrides
|
||||
# the LetsEncrypt config which is inside a location section
|
||||
# Set FORCE variable in first two if tests pass and action in the third
|
||||
set $FORCE "";
|
||||
set $test "";
|
||||
if ($scheme = "http") {
|
||||
set $FORCE 'H';
|
||||
set $test "H";
|
||||
}
|
||||
if ($request_uri ~ "^\/\.well-known\/acme-challenge\/(.*)" {
|
||||
set $test "${test}T";
|
||||
}
|
||||
if ($test = H) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
if ($request_uri !~ "^\/\.well-known\/acme-challenge\/(.*)") {
|
||||
set $FORCE "${FORCE}D";
|
||||
|
Reference in New Issue
Block a user