summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc.5.txt30
1 files changed, 26 insertions, 4 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index 65b210f..10b86f3 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -44,3 +44,3 @@ cache-root::
44 Path used to store the cgit cache entries. Default value: 44 Path used to store the cgit cache entries. Default value:
45 "/var/cache/cgit". 45 "/var/cache/cgit". See also: "MACRO EXPANSION".
46 46
@@ -157,3 +157,3 @@ include::
157 Name of a configfile to include before the rest of the current config- 157 Name of a configfile to include before the rest of the current config-
158 file is parsed. Default value: none. 158 file is parsed. Default value: none. See also: "MACRO EXPANSION".
159 159
@@ -239,3 +239,4 @@ project-list::
239 should loaded as git repositories. This must be defined prior to 239 should loaded as git repositories. This must be defined prior to
240 scan-path. Default value: none. See also: scan-path. 240 scan-path. Default value: none. See also: scan-path, "MACRO
241 EXPANSION".
241 242
@@ -291,3 +292,4 @@ scan-path::
291 before the scan-path directive will be applied to each repository. 292 before the scan-path directive will be applied to each repository.
292 Default value: none. See also: cache-scanrc-ttl, project-list. 293 Default value: none. See also: cache-scanrc-ttl, project-list,
294 "MACRO EXPANSION".
293 295
@@ -452,2 +454,22 @@ config files, e.g. "repo.desc" becomes "desc".
452 454
455MACRO EXPANSION
456---------------
457The following cgitrc options supports a simple macro expansion feature,
458where tokens prefixed with "$" are replaced with the value of a similary
459named environment variable:
460
461- cache-root
462- include
463- project-list
464- scan-path
465
466Macro expansion will also happen on the content of $CGIT_CONFIG, if
467defined.
468
469One usage of this feature is virtual hosting, which in its simplest form
470can be accomplished by adding the following line to /etc/cgitrc:
471
472 include=/etc/cgitrc.d/$HTTP_HOST
473
474
453EXAMPLE CGITRC FILE 475EXAMPLE CGITRC FILE