Archived
1
0
Fork 0

Update bundled nginx config

This commit is contained in:
Daniel Kempkens 2022-07-27 17:10:30 +02:00
parent 0437118da1
commit f1409e8bf6

View file

@ -19,6 +19,16 @@ http {
gzip_vary on;
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 {
listen 8000;
@ -26,7 +36,11 @@ http {
index index.html;
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)$ {