X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=examples%2Fpublic-inbox.psgi;h=c4a8903e1639e2a101b2ea919058d0c9b2b7897e;hp=9fa51ba6b3583e27d3ab4c5ee5d48c6dad78868d;hb=2de1bfa356eec660702cdf033bb22343bff137d3;hpb=a2777d0b327853b3e0703d787fdde629c6e474d5 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(@_);