diff --git a/build/common/nginx-default.conf.template b/build/common/nginx-default.conf.template index f19ccee2..076b2c42 100644 --- a/build/common/nginx-default.conf.template +++ b/build/common/nginx-default.conf.template @@ -29,9 +29,9 @@ server { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - proxy_set_header X-Frappe-Site-Name $http_host; + proxy_set_header X-Frappe-Site-Name $host; proxy_set_header Origin $scheme://$http_host; - proxy_set_header Host $host; + proxy_set_header Host $http_host; proxy_pass http://socketio-server; } @@ -52,8 +52,8 @@ server { location @webserver { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Frappe-Site-Name $http_host; - proxy_set_header Host $host; + proxy_set_header X-Frappe-Site-Name $host; + proxy_set_header Host $http_host; proxy_set_header X-Use-X-Accel-Redirect True; proxy_read_timeout 120; proxy_redirect off;