From: Eric Wong Date: Sat, 13 Feb 2016 23:11:44 +0000 (+0000) Subject: examples/public-inbox.psgi: document ReverseProxy X-Git-Tag: v1.0.0~725 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=2de1bfa356eec660702cdf033bb22343bff137d3 examples/public-inbox.psgi: document ReverseProxy Running behind a ReverseProxy is a popular deployment, so document it for users. --- 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(@_);