summaryrefslogtreecommitdiffabout
path: root/cgitrc
Unidiff
Diffstat (limited to 'cgitrc') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgitrc b/cgitrc
index f1d8997..9e8a0f2 100644
--- a/cgitrc
+++ b/cgitrc
@@ -62,96 +62,98 @@
62## 62##
63#renamelimit=-1 63#renamelimit=-1
64 64
65 65
66## Specify a root for virtual urls. This makes cgit generate urls like 66## Specify a root for virtual urls. This makes cgit generate urls like
67## 67##
68## http://localhost/git/repo/log/?h=branch 68## http://localhost/git/repo/log/?h=branch
69## 69##
70## instead of 70## instead of
71## 71##
72## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch 72## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch
73## 73##
74## For this to work with apache, a rewrite rule must be added to httpd.conf, 74## For this to work with apache, a rewrite rule must be added to httpd.conf,
75## possibly looking something like this: 75## possibly looking something like this:
76## 76##
77## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA] 77## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA]
78## 78##
79## For this to work with lighttpd, the rewrite rule should look more like this: 79## For this to work with lighttpd, the rewrite rule should look more like this:
80## 80##
81## url.rewrite = ( 81## url.rewrite = (
82## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" 82## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2"
83## ) 83## )
84## 84##
85## This setting is disabled by default. 85## This setting is disabled by default.
86#virtual-root=/git 86#virtual-root=/git
87 87
88 88
89## Set the title printed on the root page 89## Set the title printed on the root page
90#root-title=Git repository browser 90#root-title=Git repository browser
91 91
92 92
93## Set the description printed on the root page 93## Set the description printed on the root page
94#root-desc=a fast web interface for the git dscm 94#root-desc=a fast web interface for the git dscm
95 95
96 96
97## If specified, the file at this path will be included as HTML in the 97## If specified, the file at this path will be included as HTML in the
98## sidebar on the repository index page 98## sidebar on the repository index page
99#index-info= 99#index-info=
100 100
101 101
102## If specified, the file at this path will be included as HTML above 102## If specified, the file at this path will be included as HTML above
103## the repository index 103## the repository index
104#index-header= 104#index-header=
105 105
106 106
107## Link to css file 107## Link to css file
108#css=/cgit/cgit.css 108#css=/cgit/cgit.css
109 109
110## Link to favicon
111#favicon=/favicon.ico
110 112
111## Link to logo file 113## Link to logo file
112#logo=/cgit/git-logo.png 114#logo=/cgit/git-logo.png
113 115
114 116
115## Url loaded when clicking the logo 117## Url loaded when clicking the logo
116#logo-link=http://www.kernel.org/pub/software/scm/git/docs/ 118#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
117 119
118 120
119## Url loaded when clicking a submodule link 121## Url loaded when clicking a submodule link
120#module-link=./?repo=%s&page=commit&id=%s 122#module-link=./?repo=%s&page=commit&id=%s
121 123
122 124
123## Shared prefix which, when combined with repo url, becomes the url used 125## Shared prefix which, when combined with repo url, becomes the url used
124## to clone the repo 126## to clone the repo
125#clone-prefix= 127#clone-prefix=
126 128
127 129
128## Number of chars shown of repo description (in repolist view) 130## Number of chars shown of repo description (in repolist view)
129#max-repodesc-length=60 131#max-repodesc-length=60
130 132
131 133
132## Number of chars shown of commit subject message (in log view) 134## Number of chars shown of commit subject message (in log view)
133#max-message-length=60 135#max-message-length=60
134 136
135 137
136## Number of commits per page in log view 138## Number of commits per page in log view
137#max-commit-count=50 139#max-commit-count=50
138 140
139 141
140## Root of cached output 142## Root of cached output
141#cache-root=/var/cache/cgit 143#cache-root=/var/cache/cgit
142 144
143 145
144## Include another config-file 146## Include another config-file
145#include=/var/cgit/repolist 147#include=/var/cgit/repolist
146 148
147## 149##
148## Time-To-Live settings: specifies how long (in minutes) different pages 150## Time-To-Live settings: specifies how long (in minutes) different pages
149## should be cached (0 for instant expiration, -1 for immortal pages) 151## should be cached (0 for instant expiration, -1 for immortal pages)
150## 152##
151 153
152## ttl for root page 154## ttl for root page
153#cache-root-ttl=5 155#cache-root-ttl=5
154 156
155## ttl for repo summary page 157## ttl for repo summary page
156#cache-repo-ttl=5 158#cache-repo-ttl=5
157 159