From fb8e7dbd1b711d25d1033c3f5f540ce47f6c0849 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 20 Apr 2020 22:55:37 +0000 Subject: index: support --max-size / publicinbox.indexMaxSize In normal mail paths, we can rely on MTAs being configured with reasonable limits in the -watch and -mda mail injection paths. However, the MTA is bypassed in a git-only delivery path, a BOFH could inject a large message and DoS users attempting to mirror a public-inbox. This doesn't protect unindexed WWW interfaces from Email::MIME memory explosions on v1 inboxes. Probably nobody cares about unindexed WWW interfaces anymore, especially now that Xapian is optional for indexing. --- Documentation/public-inbox-config.pod | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Documentation/public-inbox-config.pod') diff --git a/Documentation/public-inbox-config.pod b/Documentation/public-inbox-config.pod index 708a785f..f3b6c8b7 100644 --- a/Documentation/public-inbox-config.pod +++ b/Documentation/public-inbox-config.pod @@ -288,6 +288,10 @@ or /usr/share/cgit/ See L +=item publicinbox.indexMaxSize + +See L + =item publicinbox.wwwlisting Enable a HTML listing style when the root path of the URL '/' is accessed. -- cgit v1.2.3-24-ge0c7