From 76c4cf6814f386e5516b791c225f62b9deedbccc Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Tue, 11 Apr 2023 12:59:59 +1000 Subject: [PATCH] Document need for Nginx `proxy_set_header Host` config [trac#5612] This avoids issues with incorrect URLs in RSS feeds. --- docs/source/siteadmin/deploying.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/siteadmin/deploying.rst b/docs/source/siteadmin/deploying.rst index 16c2cc7a..77d2dc9e 100644 --- a/docs/source/siteadmin/deploying.rst +++ b/docs/source/siteadmin/deploying.rst @@ -429,6 +429,12 @@ should be modeled on the following:: # Forward requests to the MediaGoblin app server. location / { proxy_pass http://127.0.0.1:6543; + # On Debian and derivatives the below proxy_set_header lines can be replaced by: + # include proxy_params; + 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-Proto $scheme; } } -- 2.38.5