about summary refs log tree commit homepage
path: root/examples
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-13 23:11:44 +0000
committerEric Wong <e@80x24.org>2016-02-13 23:12:06 +0000
commit2de1bfa356eec660702cdf033bb22343bff137d3 (patch)
treed67545411536a9f3faf04e9eb22b3864af60a843 /examples
parenta2777d0b327853b3e0703d787fdde629c6e474d5 (diff)
downloadpublic-inbox-2de1bfa356eec660702cdf033bb22343bff137d3.tar.gz
Running behind a ReverseProxy is a popular deployment,
so document it for users.
Diffstat (limited to 'examples')
-rw-r--r--examples/public-inbox.psgi6
1 files changed, 6 insertions, 0 deletions
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(@_);