diff --git a/conf/nginx.conf b/conf/nginx.conf index 5c95f86..a1dfbf9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -48,7 +48,7 @@ location = __PATH__/srv/status { access_log off; log_not_found off; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Request-Start "t=${msec}"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -93,7 +93,7 @@ # # proxy_set_header DOES NOT inherit, by design, we must repeat it, # otherwise headers are not set correctly - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Request-Start "t=${msec}"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -125,7 +125,7 @@ } location ~ ^/admin/backups/ { - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Request-Start "t=${msec}"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -140,7 +140,7 @@ # acceleration for backups and avatars # see note about repetition above location ~ ^/(letter_avatar/|user_avatar|highlight-js|stylesheets|favicon/proxied|service-worker) { - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Request-Start "t=${msec}"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -183,7 +183,7 @@ # we need buffering off for message bus location __PATH__/message-bus/ { proxy_set_header X-Request-Start "t=${msec}"; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; @@ -204,7 +204,7 @@ location @__NAME__ { more_set_headers "Referrer-Policy : no-referrer-when-downgrade"; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-Request-Start "t=${msec}"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;