From 2e29168d923d424d656c17fa4568e169bdf65d76 Mon Sep 17 00:00:00 2001 From: Steve Kamerman Date: Thu, 21 Jul 2016 11:23:35 -0400 Subject: [PATCH] Added X-Forwarded-Port --- README.md | 1 + nginx.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 53e8d5d..dddea56 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,7 @@ proxy_set_header Connection $proxy_connection; 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 $proxy_x_forwarded_proto; +proxy_set_header X-Forwarded-Port $server_port; # Mitigate httpoxy attack (see README for details) proxy_set_header Proxy ""; diff --git a/nginx.tmpl b/nginx.tmpl index 0969564..b168bc5 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -51,6 +51,7 @@ proxy_set_header Connection $proxy_connection; 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 $proxy_x_forwarded_proto; +proxy_set_header X-Forwarded-Port $server_port; # Mitigate httpoxy attack (see README for details) proxy_set_header Proxy "";