about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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(@_);