Default: 25
+ =item publicinbox.<name>.hide
+
+ A comma-delimited list of listings to hide the inbox from.
+
+ Valid values are currently "www".
+
+ Default: none
+
=item coderepo.<nick>.dir
The path to a git repository for "publicinbox.<name>.coderepo"
Default: /var/www/htdocs/cgit/cgit.cgi or /usr/lib/cgit/cgit.cgi
+=item publicinbox.cgitdata
+
+A path to the data directory used by cgit for storing static files.
+Typically guessed based the location of C<cgit.cgi> (from
+C<publicinbox.cgitbin>, but may be overridden.
+
+Default: basename of C<publicinbox.cgitbin>, /var/www/htdocs/cgit/
+or /usr/share/cgit/
+
+ =item publicinbox.wwwlisting
+
+ Enable a HTML listing style when the root path of the URL '/' is accessed.
+ Valid values are:
+
+ =over 8
+
+ =item all
+
+ Show all inboxes
+
+ =item 404
+
+ Return a 404 page. This is useful to allow customization with
+ L<Plack::App::Cascade(3pm)>
+
+ =item match=domain
+
+ Only show inboxes with URLs which belong to the domain of the HTTP
+ request
+
+ =for TODO comment
+
+ support showing cgit listing
+
+ =back
+
+ Default: 404
+
=back
=head2 NAMED LIMITER (PSGI)
Documentation/public-inbox-v1-format.pod
Documentation/public-inbox-v2-format.pod
Documentation/public-inbox-watch.pod
+Documentation/standards.perl
Documentation/txt2pre
HACKING
INSTALL
examples/apache2_perl_old.conf
examples/cgi-webrick.rb
examples/cgit-commit-filter.lua
+examples/cgit-wwwhighlight-filter.lua
examples/cgit.psgi
examples/highlight.psgi
examples/logrotate.conf
lib/PublicInbox/WwwAtomStream.pm
lib/PublicInbox/WwwAttach.pm
lib/PublicInbox/WwwHighlight.pm
+ lib/PublicInbox/WwwListing.pm
lib/PublicInbox/WwwStream.pm
lib/PublicInbox/WwwText.pm
sa_config/Makefile
use PublicInbox::Hval qw(ascii_html);
use URI;
our $TOR_URL = 'https://www.torproject.org/';
-our $TOR2WEB_URL = 'https://www.tor2web.org/';
our $CODE_URL = 'https://public-inbox.org/';
our $PROJECT = 'public-inbox';
"</head><body>". $top . $tip;
}
+ sub code_footer ($) {
+ my ($env) = @_;
+ my $u = PublicInbox::Hval::prurl($env, $CODE_URL);
+ qq(AGPL code for this site: git clone <a\nhref="$u">$u</a> $PROJECT)
+ }
+
sub _html_end {
my ($self) = @_;
my $urls = 'Archives are clonable:';
if ($urls =~ m!\b[^:]+://\w+\.onion/!) {
$urls .= "\n note: .onion URLs require Tor: ";
$urls .= qq[<a\nhref="$TOR_URL">$TOR_URL</a>];
- if ($TOR2WEB_URL) {
- $urls .= "\n or Tor2web: ";
- $urls .= qq[<a\nhref="$TOR2WEB_URL">$TOR2WEB_URL</a>];
- }
}
- my $url = PublicInbox::Hval::prurl($ctx->{env}, $CODE_URL);
'<hr><pre>'.join("\n\n",
$desc,
$urls,
- 'AGPL code for this site: '.
- qq(git clone <a\nhref="$url">$url</a> $PROJECT)
+ code_footer($ctx->{env})
).'</pre></body></html>';
}