diff options
author | Eric Wong <e@80x24.org> | 2022-10-05 22:29:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-10-07 07:42:43 +0000 |
commit | 5b39ed2b6b3d5d8c24240f1b1df8bfd751b0e6bc (patch) | |
tree | d1da405b84a617a5df3f0e98233f173b6a9e4373 /Documentation | |
parent | 26037c85f73de67197af1987e4c0fa4786ac1e31 (diff) | |
download | public-inbox-5b39ed2b6b3d5d8c24240f1b1df8bfd751b0e6bc.tar.gz |
For backwards-compatibility, this defaults to `first'. When set to `fallback', PublicInbox::WwwCoderepo is favored and cgit is only used as a fallback. Eventually, `rewrite' will also be supported to rewrite cgit URLs to WwwCoderepo ones. Of course, WwwCoderepo is still missing search and other key features, but that's being worked on...
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/public-inbox-config.pod | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Documentation/public-inbox-config.pod b/Documentation/public-inbox-config.pod index d8504e61..e926a27b 100644 --- a/Documentation/public-inbox-config.pod +++ b/Documentation/public-inbox-config.pod @@ -293,6 +293,32 @@ C<publicinbox.cgitbin>, but may be overridden. Default: basename of C<publicinbox.cgitbin>, /var/www/htdocs/cgit/ or /usr/share/cgit/ +=item publicinbox.cgit + +Controls whether or not and how C<cgit> is used for serving coderepos. +New in public-inbox 2.0.0 (PENDING). + +=over 8 + +=item * first + +Try using C<cgit> as the first choice, this is the default. + +=item * fallback + +Fall back to using C<cgit> only if our native, inbox-aware +git code repository viewer doesn't recognized the URL. + +=item * rewrite + +Rewrite C<cgit> URLs for our native, inbox-aware code repository viewer. +This implies C<fallback> for URLs the native viewer does not recognize. + +=back + +Default: C<first> (C<cgit> will be used iff C<publicinbox.cgitrc> +is set and the C<cgit> binary exists). + =item publicinbox.mailEditor See L<public-inbox-edit(1)> |