Might as well eat our own dogfood...
* spamc / spamd - SpamAssassin: http://spamassassin.apache.org/
* report-spam / dc-dlvr - distributed with public-inbox in the scripts/
- directory: git clone git://80x24.org/public-inbox
+ directory: git clone https://public-inbox.org/public-inbox.git
Source code is available via git:
- git clone git://80x24.org/public-inbox
+ git clone https://public-inbox.org/public-inbox.git
See below for contact info.
PublicInbox::WWW->preload;
use Plack::Builder;
my $www = PublicInbox::WWW->new;
+
+# share the public-inbox code itself:
+my $src = $ENV{SRC_GIT_DIR}; # '/path/to/public-inbox.git'
+
builder {
eval {
enable 'Deflater',
# format => '%t "%r" %>s %b %D';
enable 'Head';
- sub { $www->call(@_) };
+ sub {
+ my ($env) = @_;
+ # share public-inbox.git code!
+ if ($src && $env->{PATH_INFO} =~ m!\A/public-inbox\.git/(.*)!) {
+ PublicInbox::GitHTTPBackend::serve($env, $src, $1);
+ } else {
+ $www->call($env);
+ }
+ };
}
# 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 => 0,
use Crypt::CBC;
use Plack::Util;
use MIME::Base64 qw(decode_base64url);
-my $CODE_URL = 'git://80x24.org/public-inbox.git';
+my $CODE_URL = 'https://public-inbox.org/public-inbox.git';
my @CT_HTML = ('Content-Type', 'text/html; charset=UTF-8');
sub new {
use warnings;
use PublicInbox::Hval qw(ascii_html);
use URI;
-use constant PI_URL => 'https://public-inbox.org/README.html';
+use constant PI_URL => 'https://public-inbox.org/public-inbox.git';
sub new {
my ($class, $ctx, $cb) = @_;
'<pre>'.join("\n",
'- ' . $desc,
$urls,
- 'served with software from public-inbox: '
- ."<a\nhref=\"$url\">$url</a>",
+ 'Archived served using code from public-inbox:',
+ "\tgit clone $url",
).'</pre></body></html>';
}