]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/unsubscribe.psgi
nntp: use substr to check for trailing CRLF
[public-inbox.git] / examples / unsubscribe.psgi
index 82e186b1d9e904037b23611269960e9f80715a58..c804b7d004eb94690fb2b4bae06a7f6873497419 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# Copyright (C) 2016 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
 # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 # This should not require any other PublicInbox code, but may use
 # PublicInbox::Config if ~/.public-inbox/config exists or
@@ -17,9 +17,10 @@ my $app = PublicInbox::Unsubscribe->new(
                # the archives runs as a different user.
                PublicInbox::Config->new('/home/pi/.public-inbox/config')
        },
-       code_url => 'git://80x24.org/public-inbox.git', # change if you fork
+       # change if you fork
+       code_url => 'https://public-inbox.org/public-inbox.git',
        owner_email => 'BOFH@example.com',
-       confirm => 1,
+       confirm => 0,
 
        # First 8 bytes is for the key, next 8 bytes is for the IV
        # using Blowfish.  We want as short URLs as possible to avoid
@@ -60,7 +61,6 @@ my $app = PublicInbox::Unsubscribe->new(
 
 builder {
        mount '/u' => builder {
-               eval { enable 'Deflater' }; # optional
                eval { enable 'ReverseProxy' }; # optional
                enable 'Head';
                sub { $app->call(@_) };