mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-05 04:10:10 +00:00
Compare commits
2 Commits
2e528348b7
...
v2.10.4
Author | SHA1 | Date | |
---|---|---|---|
|
fe93cb3474 | ||
|
824c837a38 |
@@ -1,14 +1,3 @@
|
|||||||
# 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 "";
|
|
||||||
if ($scheme = "http") {
|
if ($scheme = "http") {
|
||||||
set $FORCE 'H';
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
if ($request_uri !~ "^\/\.well-known\/acme-challenge\/(.*)") {
|
|
||||||
set $FORCE "${FORCE}D";
|
|
||||||
}
|
|
||||||
# If we are http and outside the LetsEncrypt directories redirect to https via 301
|
|
||||||
if ($FORCE = HD) {
|
|
||||||
return 301 https://$host$request_uri;
|
|
||||||
}
|
|
Reference in New Issue
Block a user