X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=examples%2Fcgit.psgi;h=7ad38e2802246fe491ad5464da5964440e4894b9;hb=a3f00c4a7851b98b81a2fcb31d5ed131908e22de;hp=3aaa4515243946266cbbacf55bd50e6ff7833200;hpb=95bdac7f09c69036efed537a4d03d5bdd2ae4eb6;p=public-inbox.git diff --git a/examples/cgit.psgi b/examples/cgit.psgi index 3aaa4515..7ad38e28 100644 --- a/examples/cgit.psgi +++ b/examples/cgit.psgi @@ -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]) }