...
|
...
|
@@ -42,6 +42,9 @@ server { |
|
|
if ($http_x_forwarded_proto = 'http') {
|
|
|
set $rewite 1;
|
|
|
}
|
|
|
if ($request_method ~* POST) {
|
|
|
set $rewite 0;
|
|
|
}
|
|
|
|
|
|
|
|
|
# nginx status check
|
...
|
...
|
@@ -83,7 +86,7 @@ server { |
|
|
|
|
|
# forward to node app
|
|
|
location ^~ /mapp/ {
|
|
|
#redirect to 301
|
|
|
#redirect to 301 if get
|
|
|
if ($rewite = 1) {
|
|
|
return 301 https://$host$request_uri ;
|
|
|
}
|
...
|
...
|
|