]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwtext: give "url" examples in sample config
authorEric Wong <e@yhbt.net>
Sat, 1 Feb 2020 09:12:13 +0000 (09:12 +0000)
committerEric Wong <e@yhbt.net>
Sat, 1 Feb 2020 21:09:54 +0000 (21:09 +0000)
inbox.$NAME.url is a common parameter and set by
public-inbox-init(1), so ensure we have lines for it and
emphasize it can be multi-value for .onion hidden services or
otherwise mirrored and available under multiple URLs.

lib/PublicInbox/WwwText.pm

index ace7f9d73231d0c22388f94f02c757ccd9d12d25..fbbe8e3b6583a8c636cf3e6058f4bee205b0fb0f 100644 (file)
@@ -147,6 +147,8 @@ sub inbox_config ($$$) {
        ; note: public-inbox before v1.2.0 used "mainrepo"
        ; instead of "inboxdir", both remain supported after 1.2
        mainrepo = /path/to/top-level-inbox
+       url = https://example.com/$name/
+       url = http://example.onion/$name/
 EOS
        for my $k (qw(address listid infourl)) {
                defined(my $v = $ibx->{$k}) or next;