* [PATCH] examples/public-inbox.psgi: document ReverseProxy
@ 2016-02-13 23:13 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-02-13 23:13 UTC (permalink / raw)
To: meta
Running behind a ReverseProxy is a popular deployment,
so document it for users.
---
examples/public-inbox.psgi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi
index 9fa51ba..c4a8903 100644
--- a/examples/public-inbox.psgi
+++ b/examples/public-inbox.psgi
@@ -18,6 +18,12 @@ builder {
content_type => [ 'text/html', 'text/plain',
'application/atom+xml' ];
}
+
+ # Enable to ensure redirects and Atom feed URLs are generated
+ # properly when running behind a reverse proxy server which
+ # sets X-Forwarded-For and X-Forwarded-Proto request headers.
+ # See Plack::Middleware::ReverseProxy documentation for details
+ # enable 'ReverseProxy';
enable 'Head';
sub {
my $req = Plack::Request->new(@_);
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-02-13 23:13 7% [PATCH] examples/public-inbox.psgi: document ReverseProxy Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).