From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E47D21F880 for ; Sat, 1 Feb 2020 09:12:15 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/4] wwwtext: give "url" examples in sample config Date: Sat, 1 Feb 2020 09:12:13 +0000 Message-Id: <20200201091215.30024-3-e@yhbt.net> In-Reply-To: <20200201091215.30024-1-e@yhbt.net> References: <20200201091215.30024-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index ace7f9d7..fbbe8e3b 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -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;