diff --git a/ts/smartnginx.snippets.ts b/ts/smartnginx.snippets.ts index 23736e5..ca12096 100644 --- a/ts/smartnginx.snippets.ts +++ b/ts/smartnginx.snippets.ts @@ -96,9 +96,9 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, location / { proxy_http_version 1.1; proxy_buffering off; - proxy_set_header Host $http_host:$server_port; + proxy_set_header Host $http_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-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://${uniqueString}; }