From 13166226824eda8501ebd0f563c000a71634a6cf Mon Sep 17 00:00:00 2001 From: Ricardo Garcia Silva Date: Wed, 29 Nov 2023 10:42:55 +0000 Subject: [PATCH] [fixes #11734] standing up docker compose stack on a port different than 80 This preserves port information, which is useful for having correct links being generated by the GeoNode API --- scripts/docker/nginx/geonode.conf.envsubst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker/nginx/geonode.conf.envsubst b/scripts/docker/nginx/geonode.conf.envsubst index 1176ce2cc2b..937efa703c4 100644 --- a/scripts/docker/nginx/geonode.conf.envsubst +++ b/scripts/docker/nginx/geonode.conf.envsubst @@ -105,7 +105,7 @@ location / { add_header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, OPTIONS"; proxy_redirect off; - proxy_set_header Host $host; + proxy_set_header Host $http_host; proxy_set_header Origin $HTTP_SCHEME://$host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Host $server_name;