about summary refs log tree commit homepage
path: root/examples
diff options
authorEric Wong <e@80x24.org>2016-02-26 09:15:36 +0000
committerEric Wong <e@80x24.org>2016-02-26 09:15:36 +0000
commitac6f7081a484a053ddb60a2f8b6b6487664827ac (patch)
tree9e74bc1f3b8b247be7e8c6e4489521d337dd9a6a /examples
parentc3c73cd734203b4ab5d840dcc7e3e733100b1957 (diff)
ReverseProxy is the common way to run Perl applications,
so enable it by default and don't care too much about fake
requests because we don't handle any sensitive information
or rely on authentication (everything is read-only from
the WWW interface and will remain so).
Diffstat (limited to 'examples')
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi
index e3e42152..acceba3d 100644
--- a/examples/public-inbox.psgi
+++ b/examples/public-inbox.psgi
@@ -23,7 +23,8 @@ builder {
         # 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 'ReverseProxy';
         enable 'Head';
         sub { $www->call(@_) };