diff --git a/contrib/container/nginx.conf b/contrib/container/nginx.conf index 91b82adae1..e1562ec9ec 100644 --- a/contrib/container/nginx.conf +++ b/contrib/container/nginx.conf @@ -65,6 +65,9 @@ server { proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_set_header X-Original-URI $request_uri; + + # Forward the original host header, so that it matches ALLOWED_HOSTS + proxy_set_header Host $http_host; } } diff --git a/contrib/packager.io/nginx.prod.conf b/contrib/packager.io/nginx.prod.conf index a78b9ebd0f..58eca75d79 100644 --- a/contrib/packager.io/nginx.prod.conf +++ b/contrib/packager.io/nginx.prod.conf @@ -62,6 +62,9 @@ server { proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_set_header X-Original-URI $request_uri; + + # Forward the original host header, so that it matches ALLOWED_HOSTS + proxy_set_header Host $http_host; } }