From 5bcb42994125cc8b590f4f23cef390a24c9ab6c1 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sun, 11 Oct 2020 13:42:13 -0500 Subject: [PATCH] Add server_port to X-Forwarded-Host --- README.md | 1 + readme-vars.yml | 1 + root/defaults/proxy.conf | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5f9339..17aeb80 100644 --- a/README.md +++ b/README.md @@ -322,6 +322,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **11.10.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) proxy.conf - Add server_port to X-Forwarded-Host. * **04.10.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, proxy.conf, and ssl.conf - Minor cleanups and reordering. * **20.09.20:** - [Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf - Added geoip2 configs. Added MAXMINDDB_LICENSE_KEY variable to readme. * **08.09.20:** - Add php7-xsl. diff --git a/readme-vars.yml b/readme-vars.yml index f0635cc..121fc62 100755 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -149,6 +149,7 @@ app_setup_nginx_reverse_proxy_block: "" # changelog changelogs: + - { date: "11.10.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) proxy.conf - Add server_port to X-Forwarded-Host." } - { date: "04.10.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf, proxy.conf, and ssl.conf - Minor cleanups and reordering." } - { date: "20.09.20:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) nginx.conf - Added geoip2 configs. Added MAXMINDDB_LICENSE_KEY variable to readme."} - { date: "08.09.20:", desc: "Add php7-xsl." } diff --git a/root/defaults/proxy.conf b/root/defaults/proxy.conf index d1a383c..7a4d251 100644 --- a/root/defaults/proxy.conf +++ b/root/defaults/proxy.conf @@ -24,7 +24,7 @@ proxy_set_header Early-Data $ssl_early_data; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -proxy_set_header X-Forwarded-Host $host; +proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Real-IP $remote_addr;