]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/cgit.psgi
examples: add imapd systemd examples
[public-inbox.git] / examples / cgit.psgi
index 3aaa4515243946266cbbacf55bd50e6ff7833200..7ad38e2802246fe491ad5464da5964440e4894b9 100644 (file)
@@ -4,8 +4,11 @@
 #
 # PublicInbox::Cgit may be used independently of WWW.
 #
-# Usage:
+# Usage (development, with auto-reload):
 #      plackup -I lib -o 127.0.0.1 -R lib -r examples/cgit.psgi
+#
+# Usage (production, with public-inbox-httpd(1)):
+#      public-inbox-httpd [OPTIONS] /path/to/examples/cgit.psgi
 use strict;
 use warnings;
 use Plack::Builder;
@@ -15,14 +18,6 @@ my $pi_config = PublicInbox::Config->new;
 my $cgit = PublicInbox::Cgit->new($pi_config);
 
 builder {
-       eval {
-               enable 'Deflater',
-                       content_type => [ qw(
-                               text/html
-                               text/plain
-                               application/atom+xml
-                               )]
-       };
        eval { enable 'ReverseProxy' };
        enable 'Head';
        sub { $cgit->call($_[0]) }