From 2de1bfa356eec660702cdf033bb22343bff137d3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 13 Feb 2016 23:11:44 +0000 Subject: examples/public-inbox.psgi: document ReverseProxy Running behind a ReverseProxy is a popular deployment, so document it for users. --- examples/public-inbox.psgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/public-inbox.psgi') diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi index 9fa51ba6..c4a8903e 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(@_); -- cgit v1.2.3-24-ge0c7