mirroring instructions on how to clone and mirror
+all data and code used by this external index.
EOF
- } else { # v1
- $urls .= "\n";
- }
-
- my $cfg_link = ($ctx->{-upfx} // '').'_/text/config/raw';
- $urls .= qq(\nExample config snippet for mirrors\n);
- my @nntp = map { qq($_) } @{$ibx->nntp_url};
- if (@nntp) {
- $urls .= "\n";
- $urls .= @nntp == 1 ? 'Newsgroup' : 'Newsgroups are';
- $urls .= ' available over NNTP:';
- $urls .= "\n\t" . join("\n\t", @nntp) . "\n";
- }
- if ($urls =~ m!\b[^:]+://\w+\.onion/!) {
- $urls .= "\n note: .onion URLs require Tor: ";
- $urls .= qq[$TOR_URL];
}
- '
'.join("\n\n",
- $desc,
- $urls,
- code_footer($ctx->{env})
- ).'