James Moger
2011-06-28 d39680e9f54322ddcb40b00503a8ee30aee6c99c
commit | author | age
f98825 1 #
JM 2 # Git Servlet Settings
3 #
4
5 # Base folder for repositories
1f9dae 6 # Changing this value requires a server restart.
f98825 7 # Use forward slashes even on Windows!!
1f9dae 8 # e.g. c:/gitrepos
2a7306 9 git.repositoriesFolder = git
f98825 10
a125cf 11 # Search the repositories folder subfolders for other repositories.
JM 12 # Repositories MAY NOT be nested (i.e. one repository within another)
13 # but they may be grouped together in subfolders.
1f9dae 14 # e.g. c:/gitrepos/libraries/mylibrary.git
a125cf 15 #      c:/gitrepos/libraries/myotherlibrary.git
JM 16 git.searchRepositoriesSubfolders = true
f98825 17
85c2e6 18 # Allow push/pull over http/https with JGit servlet.
JM 19 git.enableGitServlet = true
20
f98825 21 #
JM 22 # Authentication Settings
23 #
24
25 # Require authentication to see everything but the admin pages
1f9dae 26 # Changing this value requires a server restart.
f98825 27 web.authenticateViewPages = false
JM 28
29 # Require admin authentication for the admin functions and pages
1f9dae 30 # Changing this value requires a server restart.
f98825 31 web.authenticateAdminPages = true
JM 32
85c2e6 33 # Allow Gitblit to store a cookie in the user's browser for automatic
JM 34 # authentication.  The cookie is generated by the user service.
35 web.allowCookieAuthentication = true
36
37 # Either the path to a simple user properties file
38 # OR a fully qualified class name that implements the IUserService interface.
5450d0 39 # Any custom implementation must have a public default constructor.
1f9dae 40 # Changing this value requires a server restart.
85c2e6 41 realm.userService = users.properties
f98825 42
JM 43 # How to store passwords.
8a2e9c 44 # Valid values are plain or md5.  Default is md5. 
f98825 45 realm.passwordStorage = md5
JM 46
a098da 47 # Minimum valid length for a plain text password.
JM 48 # Default value is 5.  Absolute minimum is 4. 
49 realm.minPasswordLength = 5
50
f98825 51 #
f13c4c 52 # Gitblit Web Settings
f98825 53 #
f13c4c 54 # If blank Gitblit is displayed.
f98825 55 web.siteName =
JM 56
1f9dae 57 # If web.authenticateAdminPages=true, users with "admin" role can create
JM 58 # repositories, create users, and edit repository metadata.
f98825 59 #
1f9dae 60 # If web.authenticateAdminPages=false, any user can execute the aforementioned
JM 61 # functions.  
f98825 62 web.allowAdministration = true
JM 63
d39680 64 # Allow dynamic zip downloads.   
9197d3 65 web.allowZipDownloads = true
JM 66
85c2e6 67 # Default number of entries to include in RSS Syndication links
c22722 68 web.syndicationEntries = 25
JM 69
f98825 70 # This is the message display above the repositories table.
JM 71 # This can point to a file with Markdown content.
72 # Specifying "gitblit" uses the internal welcome message.
73 web.repositoriesMessage = gitblit
74
75 # Use the client timezone when formatting dates.
85c2e6 76 # This uses AJAX to determine the browser's timezone and may require more
JM 77 # server overhead because a Wicket session is created.  All Gitblit pages
78 # attempt to be stateless, if possible.
1f9dae 79 # Changing this value requires a server restart.
f98825 80 web.useClientTimezone = false
JM 81
82 # Date and Time formats
1f9dae 83 # http://download.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
f98825 84 web.datestampShortFormat = yyyy-MM-dd
JM 85 web.datetimestampLongFormat = EEEE, MMMM d, yyyy h:mm a z
86
b01ca0 87 # Mount parameters
JM 88 # true: http://localhost/commit/myrepo/abcdef
89 # false: http://localhost/commit/?r=myrepo&h=abcdef
90 # Changing this value requires a server restart.
91 web.mountParameters = true
92
17c417 93 # Show other URLs on the summary page for accessing your git repositories
JM 94 # Use spaces to separate urls. {0} is the token for the repository name.
1f9dae 95 # e.g.
17c417 96 # web.otherUrls = ssh://localhost/git/{0} git://localhost/git/{0}
JM 97 web.otherUrls = 
98
00afd7 99 # Choose how to present the repositories list.
1f9dae 100 #   grouped = group nested/subfolder repositories together (no sorting)
JM 101 #   flat = flat list of repositories (sorting allowed)
a4d249 102 web.repositoryListType = grouped
00afd7 103
JM 104 # If using a grouped repository list and there are repositories at the
105 # root level of your repositories folder, you may specify the displayed
106 # group name with this setting.  This value is only used for web presentation.
107 web.repositoryRootGroupName = main
108
f98825 109 # Choose the diff presentation style: gitblt, gitweb, or plain
JM 110 web.diffStyle = gitblit
111
112 # Control if email addresses are shown in web ui
113 web.showEmailAddresses = true
114
115 # Shows a combobox in the page links header with commit, committer, and author
116 # search selection.  Default search is commit.
117 web.showSearchTypeSelection = false
118
119 # Generates a line graph of repository activity over time on the Summary page.
1f9dae 120 # This uses the Google Charts API. 
f98825 121 web.generateActivityGraph = true
JM 122
123 # The number of commits to display on the summary page
124 # Value must exceed 0 else default of 20 is used
125 web.summaryCommitCount = 16
126
85c2e6 127 # The number of tags/branches to display on the summary page.
JM 128 # -1 = all tags/branches
129 # 0 = hide tags/branches
130 # N = N tags/branches
f98825 131 web.summaryRefsCount = 5
JM 132
133 # The number of items to show on a page before showing the first, prev, next
134 # pagination links.  A default if 50 is used for any invalid value.
135 web.itemsPerPage = 50
136
137 # Registered extensions for google-code-prettify
1f9dae 138 # (case-insensitive)
f98825 139 web.prettyPrintExtensions = c cpp cs css htm html java js php pl prefs properties py rb sh sql xml vb
JM 140
141 # Registered extensions for markdown transformation
1f9dae 142 # (CASE-SENSITIVE)
JM 143 web.markdownExtensions = md mkd markdown MD MKD
f98825 144
JM 145 # Image extensions
1f9dae 146 # (case-insensitive)
f98825 147 web.imageExtensions = bmp jpg gif png 
JM 148
149 # Registered extensions for binary blobs
1f9dae 150 # (case-insensitive)
f98825 151 web.binaryExtensions = jar pdf tar.gz zip
JM 152
153 # Aggressive heap management will run the garbage collector on every generated
1f9dae 154 # page.  This slows down page generation a little but improves heap consumption. 
85c2e6 155 web.aggressiveHeapManagement = false
f98825 156
JM 157 # Run the webapp in debug mode
1f9dae 158 # Changing this value requires a server restart.
f98825 159 web.debugMode = false
JM 160
161 # Enable/disable global regex substitutions (i.e. shared across repositories)
162 regex.global = true
163
164 # Example global regex substitutions
165 # Use !!! to separate the search pattern and the replace pattern
166 # searchpattern!!!replacepattern
5450d0 167 regex.global.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!<a href="http://somehost/bug/$3">Bug-Id: $3</a>
JM 168 regex.global.changeid = \\b(Change-Id:\\s*)([A-Za-z0-9]*)\\b!!!<a href="http://somehost/changeid/$2">Change-Id: $2</a>
f98825 169
JM 170 # Example per-repository regex substitutions overrides global
5450d0 171 regex.myrepository.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!<a href="http://elsewhere/bug/$3">Bug-Id: $3</a>
f98825 172
JM 173 #
174 # Server Settings
175 #
1f9dae 176 # Changing any of these values requires a server restart.
JM 177
178 # The temporary folder to decompress the gitblit webapp. 
f98825 179 server.tempFolder = temp
JM 180
181 #
85c2e6 182 # Jetty Http/Https Server Settings
f98825 183 #
JM 184
185 # Use Jetty NIO connectors.  If false, Jetty Socket connectors will be used.
186 server.useNio = true
187
188 # Standard http port to serve.  <= 0 disables this connector.
189 server.httpPort = 0
190
191 # Secure/SSL https port to serve. <= 0 disables this connector.
192 server.httpsPort = 443
193
194 # Specify the interface for Jetty to bind the standard connector.
dd7961 195 # You may specify an ip or an empty value to bind to all interfaces.
1f9dae 196 # Specifying localhost will result in Gitblit ONLY listening to requests to
dd7961 197 # localhost.
f98825 198 server.httpBindInterface = localhost
JM 199
200 # Specify the interface for Jetty to bind the secure connector.
201 # You may specify an ip or an empty value to bind to all interfaces.
1f9dae 202 # Specifying localhost will result in Gitblit ONLY listening to requests to
dd7961 203 # localhost.
f98825 204 server.httpsBindInterface = localhost
JM 205
206 # Password for SSL keystore.
207 # Keystore password and certificate password must match.
208 # This is provided for convenience, its probably more secure to set this value
209 # using the --storePassword command line parameter.
1f9dae 210 server.storePassword = gitblit
f98825 211
JM 212 # Port for shutdown monitor to listen on.
213 server.shutdownPort = 8081