Update bundled nginx config
This commit is contained in:
parent
0437118da1
commit
f1409e8bf6
1 changed files with 15 additions and 1 deletions
|
@ -19,6 +19,16 @@ http {
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
|
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
|
||||||
|
|
||||||
|
map $http_x_forwarded_proto $pass_scheme {
|
||||||
|
default $http_x_forwarded_proto;
|
||||||
|
'' $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
|
map $http_x_forwarded_host $pass_host {
|
||||||
|
default $http_x_forwarded_host;
|
||||||
|
'' $host;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8000;
|
listen 8000;
|
||||||
|
|
||||||
|
@ -26,7 +36,11 @@ http {
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
location = / {
|
location = / {
|
||||||
return 307 /wdc;
|
return 307 $pass_scheme://$pass_host/wdc;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /index.html {
|
||||||
|
return 307 $pass_scheme://$pass_host/wdc/index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(html|json)$ {
|
location ~* \.(html|json)$ {
|
||||||
|
|
Reference in a new issue