From 5af881d954a4ab14e08dd806dd4de1e9f26bfd12 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 8 Mar 2019 01:21:22 +0000 Subject: support publicinbox.cgitrc directive We can save admins the trouble of declaring [coderepo "..."] sections in the public-inbox config by parsing the cgitrc directly. Macro expansion (e.g. $HTTP_HOST) expansion is not supported, yet; but may be in the future. --- Documentation/public-inbox-config.pod | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Documentation') diff --git a/Documentation/public-inbox-config.pod b/Documentation/public-inbox-config.pod index 27d27e4e..5ee93e2e 100644 --- a/Documentation/public-inbox-config.pod +++ b/Documentation/public-inbox-config.pod @@ -188,16 +188,27 @@ be treated as the default value. Default: 25 -=item coderepo..dir +=item coderepo..dir The path to a git repository for "publicinbox..coderepo" -=item coderepo..cgitUrl +=item coderepo..cgitUrl The URL of the cgit instance associated with the coderepo. Default: none +=item publicinbox.cgitrc + +A path to a L file. "repo.url" directives in the cgitrc +will be mapped to the nickname of a coderepo (without trailing slash), +and "repo.path" directives map to "coderepo..dir". +Use of this directive allows admins of existing cgit installations +to skip declaring coderepo sections and map inboxes directly to +code repositories known to cgit. + +Macro expansion (e.g. C<$HTTP_HOST>) is not yet supported. + =back =head2 NAMED LIMITER (PSGI) -- cgit v1.2.3-24-ge0c7