mirror of
https://github.com/Safe3/openresty-manager.git
synced 2025-10-04 22:01:52 +08:00
12 lines
No EOL
204 B
Text
12 lines
No EOL
204 B
Text
set $force_ssl 0;
|
|
if ($scheme = http) {
|
|
set $force_ssl 1;
|
|
}
|
|
|
|
if ($request_uri ~ "^/\.well-known/acme-challenge/") {
|
|
set $force_ssl 0;
|
|
}
|
|
|
|
if ($force_ssl = 1) {
|
|
return 301 https://$host$request_uri;
|
|
} |