cache-static-ttl::
Number which specifies the time-to-live, in minutes, for the cached
version of repository pages accessed with a fixed SHA1. Negative
- values have infinite ttl. Default value: -1".
+ values have infinite ttl, zero means that the cache is disabled for
+ this type of pages. Default value: -1".
cache-dynamic-ttl::
Number which specifies the time-to-live, in minutes, for the cached
version of repository pages accessed without a fixed SHA1. Negative
- values have infinite ttl. Default value: "5".
+ values have infinite ttl, zero means that the cache is disabled for this
+ type of pages. Default value: "5".
cache-repo-ttl::
Number which specifies the time-to-live, in minutes, for the cached
version of the repository summary page. Negative values have infinite
- ttl. Default value: "5".
+ ttl, zero means that the cache is disabled for this type of pages.
+ Default value: "5".
cache-root-ttl::
Number which specifies the time-to-live, in minutes, for the cached
version of the repository index page. Negative values have infinite
- ttl. Default value: "5".
+ ttl, zero means that the cache is disabled for this type of pages.
+ Default value: "5".
cache-scanrc-ttl::
Number which specifies the time-to-live, in minutes, for the result
of scanning a path for git repositories. Negative values have infinite
- ttl. Default value: "15".
+ ttl, zero means that the cache is disable for this type of pages.
+ Default value: "15".
cache-about-ttl::
Number which specifies the time-to-live, in minutes, for the cached
version of the repository about page. Negative values have infinite
- ttl. Default value: "15".
+ ttl, zero means that the cache is disable for this type of pages.
+ Default value: "15".
+
+cache-snapshot-ttl::
+ Number which specifies the time-to-live, in minutes, for the cached
+ version of snapshots. Negative values have infinite ttl, zero means
+ that the cache is disable for this type of pages. Default value: "5".
cache-size::
The maximum number of entries in the cgit cache. Default value: "0"
filtered contents is expected on standard output.
auth filter::
- The authentication filter receives 11 parameters:
+ The authentication filter receives 12 parameters:
- filter action, explained below, which specifies which action the
filter is called for
- http cookie
- cgit repo
- cgit page
- cgit url
+ - cgit login url
When the filter action is "body", this filter must write to output the
- HTML for displaying the login form, which POSTs to "/?p=login". When
+ HTML for displaying the login form, which POSTs to the login url. When
the filter action is "authenticate-cookie", this filter must validate
the http cookie and return a 0 if it is invalid or 1 if it is invalid,
in the exit code / close function. If the filter action is