diff options
| author | Junio C Hamano <gitster@pobox.com> | 2011-08-08 12:33:34 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2011-08-08 12:33:34 -0700 |
| commit | 86bd7f99892238d36c62c18477ea360037ac19dc (patch) | |
| tree | 5ee8dc3d7a53e2110a8bffda01f51ff1b7e0246f /gitweb/README | |
| parent | 75745bc7041a17f6cebf719a50157eb5b1d3bfe9 (diff) | |
| parent | 131d6afcba657f9348031ee2e20f62d25d69ce7a (diff) | |
| download | git-86bd7f99892238d36c62c18477ea360037ac19dc.tar.xz | |
Merge branch 'jn/gitweb-system-config'
* jn/gitweb-system-config:
gitweb: Introduce common system-wide settings for convenience
Diffstat (limited to 'gitweb/README')
| -rw-r--r-- | gitweb/README | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/gitweb/README b/gitweb/README index a4cfcb42cd..a9988200d6 100644 --- a/gitweb/README +++ b/gitweb/README @@ -10,9 +10,30 @@ From the git version 1.4.0 gitweb is bundled with git. Runtime gitweb configuration ---------------------------- -You can adjust gitweb behaviour using the file specified in `GITWEB_CONFIG` -(defaults to 'gitweb_config.perl' in the same directory as the CGI), and -as a fallback `GITWEB_CONFIG_SYSTEM` (defaults to /etc/gitweb.conf). +Gitweb obtains configuration data from the following sources in the +following order: + +1. built-in values (some set during build stage), +2. common system-wide configuration file (`GITWEB_CONFIG_COMMON`, + defaults to '/etc/gitweb-common.conf'), +3. either per-instance configuration file (`GITWEB_CONFIG`, defaults to + 'gitweb_config.perl' in the same directory as the installed gitweb), + or if it does not exists then system-wide configuration file + (`GITWEB_CONFIG_SYSTEM`, defaults to '/etc/gitweb.conf'). + +Values obtained in later configuration files override values obtained earlier +in above sequence. + +You can read defaults in system-wide GITWEB_CONFIG_SYSTEM from GITWEB_CONFIG +by adding + + read_config_file($GITWEB_CONFIG_SYSTEM); + +at very beginning of per-instance GITWEB_CONFIG file. In this case +settings in said per-instance file will override settings from +system-wide configuration file. Note that read_config_file checks +itself that the $GITWEB_CONFIG_SYSTEM file exists. + The most notable thing that is not configurable at compile time are the optional features, stored in the '%features' variable. |
