public-inbox-config
public-inbox config file description
- Provided by: public-inbox (Version: 1.6.1-2)
- Report a bug
public-inbox config file description
~/.public-inbox/config
The public-inbox config file is parseable by git-config(1). This is a global configuration file for mapping/discovering all public-inboxes used by a particular user.
[publicinbox "test"]
inboxdir = /home/user/path/to/test.git
; multiple addresses are supported
address = test@example.com
; address = alternate@example.com
url = http://example.com/test
newsgroup = inbox.test
; backwards compatibility with public-inbox pre-1.2.0,
; "inboxdir" takes precedence over "mainrepo"
mainrepo = /home/user/path/to/test.git
Default: none, required
This was previously known as "mainrepo", which remains supported, but "inboxdir" takes precedence.
Default: none, required
Default: none, optional
Omitting this for the given inbox will prevent the group from being read by public-inbox-nntpd(1)
Default: none, optional
For public-inbox-watch users, this is a shortcut for specifying "publicinbox.$NAME.watchheader=List-Id:<foo.example.com>"
For public-inbox-mda users, this may be used to avoid recipient matching via "ORIGINAL_RECIPIENT" environment variable.
This may be specified multiple times for merging multiple mailing lists into a single public-inbox, only one "List-Id" header needs to match.
Default: none
Default: none
"basic" only requires DBD::SQLite(3pm) and provides all NNTP functionality along with thread-awareness in the WWW interface.
"medium" requires Search::Xapian(3pm) to provide full-text term search functionality in the WWW UI.
"full" also includes positional information used by Xapian to allow for searching for phrases using quoted text. (e.g. "looking for a complete sentence")
Default: "full"
If an alphanumeric value starting with a lowercase alphabetic character is specified, the inbox will use a "NAMED LIMITER" which can be shared by multiple inboxes.
Default: 32 (using a default limiter shared by all inboxes)
Default: none
":none=dead inbox" may be specified to denote an inactive list ("dead inbox" may be replaced with another phrase).
A list of comma-delimited email addresses may be specified. This can be useful for dedicated inboxes for bot emails, but discussion happens on a separate mailing list/inbox.
Mirrors of existing centralized mailing lists may use ":list" here to redirect mail only to the configured inbox address. The use of ":list" is discouraged for new mailing lists, as it leads to centralization.
Default: :all
Default: spamc
Multiple values are allowed for instances with multiple hostnames or mirrors.
Default: none
Default: 25
Valid values are currently "www" and "manifest".
Default: none
Default: none
Macro expansion (e.g. $HTTP_HOST) is not yet supported.
Default: /var/www/htdocs/cgit/cgit.cgi or /usr/lib/cgit/cgit.cgi
Default: basename of "publicinbox.cgitbin", /var/www/htdocs/cgit/ or /usr/share/cgit/
support showing cgit listing
Default: 404
Valid values are:
Default: "match=domain"
Named limiters are useful for preventing large inboxes from monopolizing (or overloading) the server. Since serving git clones (via git-http-backend(1) can be memory-intensive for large inboxes, it makes sense to put large inboxes on a named limiter with a low max value; while smaller inboxes can use the default limiter.
"RLIMIT_*" keys may be set to enforce resource limits for a particular limiter.
Default named-limiters are prefixed with "-". Currently, the "-cgit" named limiter is reserved for instances spawning cgit via "publicinbox.cgitrc"
See setrlimit(2) for more info on the behavior of RLIMIT_CORE, RLIMIT_CPU, and RLIMIT_DATA for you operating system.
EXAMPLE WITH NAMED LIMITERS
; big inboxes which require lots of memory to clone:
[publicinbox "big1"]
inboxdir = /path/to/big1
address = big1@example.com
httpbackendmax = big
[publicinbox "big2"]
inboxdir = /path/to/big2
address = big2@example.com
httpbackendmax = big
; tiny inboxes which are easily cloned:
[publicinbox "tiny1"]
inboxdir = /path/to/tiny1
address = tiny1@example.com
[publicinbox "tiny2"]
inboxdir = /path/to/tiny2
address = tiny2@example.com
[publicinboxlimiter "big"]
max = 4
In the above example, the "big1" and "big2" are limited to four parallel git-http-backend(1) processes between them.
However, "tiny1" and "tiny2" will share the default limiter which means there can be 32 git-http-backend(1) processes between them.
Feedback welcome via plain-text mail to <mailto:meta@public-inbox.org>
The mail archives are hosted at <https://public-inbox.org/meta/> and <http://hjrcffqmbrq6wope.onion/meta/>
Copyright 2016-2020 all contributors <mailto:meta@public-inbox.org>
License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
git(1), git-config(1), public-inbox-daemon(8), public-inbox-mda(1), public-inbox-watch(1), grokmirror <https://git.kernel.org/pub/scm/utils/grokmirror/grokmirror.git>