You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gitblit.properties 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. #
  2. # Git Servlet Settings
  3. #
  4. # Base folder for repositories
  5. # Use forward slashes even on Windows!!
  6. # e.g. c:/gitrepos
  7. #
  8. # SINCE 0.5.0
  9. # RESTART REQUIRED
  10. git.repositoriesFolder = git
  11. # Search the repositories folder subfolders for other repositories.
  12. # Repositories MAY NOT be nested (i.e. one repository within another)
  13. # but they may be grouped together in subfolders.
  14. # e.g. c:/gitrepos/libraries/mylibrary.git
  15. # c:/gitrepos/libraries/myotherlibrary.git
  16. #
  17. # SINCE 0.5.0
  18. git.searchRepositoriesSubfolders = true
  19. # Allow push/pull over http/https with JGit servlet.
  20. # If you do NOT want to allow Git clients to clone/push to Gitblit set this
  21. # to false. You might want to do this if you are only using ssh:// or git://.
  22. # If you set this false, consider changing the *web.otherUrls* setting to
  23. # indicate your clone/push urls.
  24. #
  25. # SINCE 0.5.0
  26. git.enableGitServlet = true
  27. #
  28. # Authentication Settings
  29. #
  30. # Require authentication to see everything but the admin pages
  31. #
  32. # SINCE 0.5.0
  33. # RESTART REQUIRED
  34. web.authenticateViewPages = false
  35. # Require admin authentication for the admin functions and pages
  36. #
  37. # SINCE 0.5.0
  38. # RESTART REQUIRED
  39. web.authenticateAdminPages = true
  40. # Allow Gitblit to store a cookie in the user's browser for automatic
  41. # authentication. The cookie is generated by the user service.
  42. #
  43. # SINCE 0.5.0
  44. web.allowCookieAuthentication = true
  45. # Either the path to a simple user properties file
  46. # OR a fully qualified class name that implements the IUserService interface.
  47. # Any custom implementation must have a public default constructor.
  48. #
  49. # SINCE 0.5.0
  50. # RESTART REQUIRED
  51. realm.userService = users.properties
  52. # How to store passwords.
  53. # Valid values are plain or md5. Default is md5.
  54. #
  55. # SINCE 0.5.0
  56. realm.passwordStorage = md5
  57. # Minimum valid length for a plain text password.
  58. # Default value is 5. Absolute minimum is 4.
  59. #
  60. # SINCE 0.5.0
  61. realm.minPasswordLength = 5
  62. #
  63. # Gitblit Web Settings
  64. #
  65. # If blank Gitblit is displayed.
  66. #
  67. # SINCE 0.5.0
  68. web.siteName =
  69. # If *web.authenticateAdminPages*=true, users with "admin" role can create
  70. # repositories, create users, and edit repository metadata.
  71. #
  72. # If *web.authenticateAdminPages*=false, any user can execute the aforementioned
  73. # functions.
  74. #
  75. # SINCE 0.5.0
  76. web.allowAdministration = true
  77. # Allows remote clients to list repositories and possibly administer the Gitblit
  78. # server, if the authenticated account has administrator permissions.
  79. #
  80. # SINCE 0.7.0
  81. web.enableRpcServlet = true
  82. # Allows remote clients to administer the Gitblit instance, if the authenticated
  83. # account has administrator permissions. Requires *web.enableRpcServlet=true*.
  84. #
  85. # SINCE 0.7.0
  86. web.enableRpcAdministration = false
  87. # Allow dynamic zip downloads.
  88. #
  89. # SINCE 0.5.0
  90. web.allowZipDownloads = true
  91. # Default number of entries to include in RSS Syndication links
  92. #
  93. # SINCE 0.5.0
  94. web.syndicationEntries = 25
  95. # Show the size of each repository on the repositories page.
  96. # This requires recursive traversal of each repository folder. This may be
  97. # non-performant on some operating systems and/or filesystems.
  98. #
  99. # SINCE 0.5.2
  100. web.showRepositorySizes = true
  101. # Show federation registrations (without token) and the current pull status
  102. # to non-administrator users.
  103. #
  104. # SINCE 0.6.0
  105. web.showFederationRegistrations = false
  106. # This is the message displayed when *web.authenticateViewPages=true*.
  107. # This can point to a file with Markdown content.
  108. # Specifying "gitblit" uses the internal login message.
  109. #
  110. # SINCE 0.7.0
  111. web.loginMessage = gitblit
  112. # This is the message displayed above the repositories table.
  113. # This can point to a file with Markdown content.
  114. # Specifying "gitblit" uses the internal welcome message.
  115. #
  116. # SINCE 0.5.0
  117. web.repositoriesMessage = gitblit
  118. # Use the client timezone when formatting dates.
  119. # This uses AJAX to determine the browser's timezone and may require more
  120. # server overhead because a Wicket session is created. All Gitblit pages
  121. # attempt to be stateless, if possible.
  122. #
  123. # SINCE 0.5.0
  124. # RESTART REQUIRED
  125. web.useClientTimezone = false
  126. # Short date format
  127. # <http://download.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html>
  128. #
  129. # SINCE 0.5.0
  130. web.datestampShortFormat = yyyy-MM-dd
  131. # Long timestamp format
  132. # <http://download.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html>
  133. #
  134. # SINCE 0.5.0
  135. web.datetimestampLongFormat = EEEE, MMMM d, yyyy h:mm a z
  136. # Mount URL parameters
  137. # This setting controls if pretty or parameter URLs are used.
  138. # i.e.
  139. # if true:
  140. # http://localhost/commit/myrepo/abcdef
  141. # if false:
  142. # http://localhost/commit/?r=myrepo&h=abcdef
  143. #
  144. # SINCE 0.5.0
  145. # RESTART REQUIRED
  146. web.mountParameters = true
  147. # Some servlet containers (e.g. Tomcat >= 6.0.10) disallow '/' (%2F) encoding
  148. # in URLs as a security precaution for proxies. This setting tells Gitblit
  149. # to preemptively replace '/' with '*' or '!' for url string parameters.
  150. #
  151. # <https://issues.apache.org/jira/browse/WICKET-1303>
  152. # <http://tomcat.apache.org/security-6.html>
  153. #
  154. # SINCE 0.5.2
  155. web.forwardSlashCharacter = /
  156. # Show other URLs on the summary page for accessing your git repositories
  157. # Use spaces to separate urls. {0} is the token for the repository name.
  158. # e.g.
  159. # web.otherUrls = ssh://localhost/git/{0} git://localhost/git/{0}
  160. #
  161. # SINCE 0.5.0
  162. web.otherUrls =
  163. # Choose how to present the repositories list.
  164. # grouped = group nested/subfolder repositories together (no sorting)
  165. # flat = flat list of repositories (sorting allowed)
  166. #
  167. # SINCE 0.5.0
  168. web.repositoryListType = grouped
  169. # If using a grouped repository list and there are repositories at the
  170. # root level of your repositories folder, you may specify the displayed
  171. # group name with this setting. This value is only used for web presentation.
  172. #
  173. # SINCE 0.5.0
  174. web.repositoryRootGroupName = main
  175. # Choose the diff presentation style: gitblt, gitweb, or plain
  176. #
  177. # SINCE 0.5.0
  178. web.diffStyle = gitblit
  179. # Control if email addresses are shown in web ui
  180. #
  181. # SINCE 0.5.0
  182. web.showEmailAddresses = true
  183. # Shows a combobox in the page links header with commit, committer, and author
  184. # search selection. Default search is commit.
  185. #
  186. # SINCE 0.5.0
  187. web.showSearchTypeSelection = false
  188. # Generates a line graph of repository activity over time on the Summary page.
  189. # This uses the Google Charts API.
  190. #
  191. # SINCE 0.5.0
  192. web.generateActivityGraph = true
  193. # The number of commits to display on the summary page
  194. # Value must exceed 0 else default of 20 is used
  195. #
  196. # SINCE 0.5.0
  197. web.summaryCommitCount = 16
  198. # The number of tags/branches to display on the summary page.
  199. # -1 = all tags/branches
  200. # 0 = hide tags/branches
  201. # N = N tags/branches
  202. #
  203. # SINCE 0.5.0
  204. web.summaryRefsCount = 5
  205. # The number of items to show on a page before showing the first, prev, next
  206. # pagination links. A default if 50 is used for any invalid value.
  207. #
  208. # SINCE 0.5.0
  209. web.itemsPerPage = 50
  210. # Registered extensions for google-code-prettify
  211. #
  212. # SPACE-DELIMITED
  213. # SINCE 0.5.0
  214. web.prettyPrintExtensions = c cpp cs css htm html java js php pl prefs properties py rb sh sql xml vb
  215. # Registered extensions for markdown transformation
  216. #
  217. # SPACE-DELIMITED
  218. # CASE-SENSITIVE
  219. # SINCE 0.5.0
  220. web.markdownExtensions = md mkd markdown MD MKD
  221. # Image extensions
  222. #
  223. # SPACE-DELIMITED
  224. # SINCE 0.5.0
  225. web.imageExtensions = bmp jpg gif png
  226. # Registered extensions for binary blobs
  227. #
  228. # SPACE-DELIMITED
  229. # SINCE 0.5.0
  230. web.binaryExtensions = jar pdf tar.gz zip
  231. # Aggressive heap management will run the garbage collector on every generated
  232. # page. This slows down page generation a little but improves heap consumption.
  233. #
  234. # SINCE 0.5.0
  235. web.aggressiveHeapManagement = false
  236. # Run the webapp in debug mode
  237. #
  238. # SINCE 0.5.0
  239. # RESTART REQUIRED
  240. web.debugMode = false
  241. # Enable/disable global regex substitutions (i.e. shared across repositories)
  242. #
  243. # SINCE 0.5.0
  244. regex.global = true
  245. # Example global regex substitutions
  246. # Use !!! to separate the search pattern and the replace pattern
  247. # searchpattern!!!replacepattern
  248. # SINCE 0.5.0
  249. regex.global.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!<a href="http://somehost/bug/$3">Bug-Id: $3</a>
  250. # SINCE 0.5.0
  251. regex.global.changeid = \\b(Change-Id:\\s*)([A-Za-z0-9]*)\\b!!!<a href="http://somehost/changeid/$2">Change-Id: $2</a>
  252. # Example per-repository regex substitutions overrides global
  253. # SINCE 0.5.0
  254. regex.myrepository.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!<a href="http://elsewhere/bug/$3">Bug-Id: $3</a>
  255. #
  256. # Mail Settings
  257. # SINCE 0.6.0
  258. #
  259. # Mail settings are used to notify administrators of received federation proposals
  260. #
  261. # ip or hostname of smtp server
  262. #
  263. # SINCE 0.6.0
  264. mail.server =
  265. # port to use for smtp requests
  266. #
  267. # SINCE 0.6.0
  268. mail.port = 25
  269. # debug the mail executor
  270. #
  271. # SINCE 0.6.0
  272. mail.debug = false
  273. # if your smtp server requires authentication, supply the credentials here
  274. #
  275. # SINCE 0.6.0
  276. mail.username =
  277. # SINCE 0.6.0
  278. mail.password =
  279. # from address for generated emails
  280. #
  281. # SINCE 0.6.0
  282. mail.fromAddress =
  283. # List of email addresses for the Gitblit administrators
  284. #
  285. # SPACE-DELIMITED
  286. # SINCE 0.6.0
  287. mail.adminAddresses =
  288. #
  289. # Federation Settings
  290. # SINCE 0.6.0
  291. #
  292. # A Gitblit federation is a way to backup one Gitblit instance to another.
  293. #
  294. # *git.enableGitServlet* must be true to use this feature.
  295. # Your federation name is used for federation status acknowledgments. If it is
  296. # unset, and you elect to send a status acknowledgment, your Gitblit instance
  297. # will be identified by its hostname, if available, else your internal ip address.
  298. # The source Gitblit instance will also append your external IP address to your
  299. # identification to differentiate multiple pulling systems behind a single proxy.
  300. #
  301. # SINCE 0.6.0
  302. federation.name =
  303. # Specify the passphrase of this Gitblit instance.
  304. #
  305. # An unspecified (empty) passphrase disables processing federation requests.
  306. #
  307. # This value can be anything you want: an integer, a sentence, an haiku, etc.
  308. # Keep the value simple, though, to avoid Java properties file encoding issues.
  309. #
  310. # Changing your passphrase will break any registrations you have established with other
  311. # Gitblit instances.
  312. #
  313. # CASE-SENSITIVE
  314. # SINCE 0.6.0
  315. # RESTART REQUIRED *(only to enable or disable federation)*
  316. federation.passphrase =
  317. # Control whether or not this Gitblit instance can receive federation proposals
  318. # from another Gitblit instance. Registering a federated Gitblit is a manual
  319. # process. Proposals help to simplify that process by allowing a remote Gitblit
  320. # instance to send your Gitblit instance the federation pull data.
  321. #
  322. # SINCE 0.6.0
  323. federation.allowProposals = false
  324. # The destination folder for cached federation proposals.
  325. # Use forward slashes even on Windows!!
  326. #
  327. # SINCE 0.6.0
  328. federation.proposalsFolder = proposals
  329. # The default pull frequency if frequency is unspecified on a registration
  330. #
  331. # SINCE 0.6.0
  332. federation.defaultFrequency = 60 mins
  333. # Federation Sets are named groups of repositories. The Federation Sets are
  334. # available for selection in the repository settings page. You can assign a
  335. # repository to one or more sets and then distribute the token for the set.
  336. # This allows you to grant federation pull access to a subset of your available
  337. # repositories. Tokens for federation sets only grant repository pull access.
  338. #
  339. # SPACE-DELIMITED
  340. # CASE-SENSITIVE
  341. # SINCE 0.6.0
  342. federation.sets =
  343. # Federation pull registrations
  344. # Registrations are read once, at startup.
  345. #
  346. # RESTART REQUIRED
  347. #
  348. # frequency:
  349. # The shortest frequency allowed is every 5 minutes
  350. # Decimal frequency values are cast to integers
  351. # Frequency values may be specified in mins, hours, or days
  352. # Values that can not be parsed or are unspecified default to *federation.defaultFrequency*
  353. #
  354. # folder:
  355. # if unspecified, the folder is *git.repositoriesFolder*
  356. # if specified, the folder is relative to *git.repositoriesFolder*
  357. #
  358. # bare:
  359. # if true, each repository will be created as a *bare* repository and will not
  360. # have a working directory.
  361. #
  362. # if false, each repository will be created as a normal repository suitable
  363. # for local work.
  364. #
  365. # mirror:
  366. # if true, each repository HEAD is reset to *origin/master* after each pull.
  367. # The repository will be flagged *isFrozen* after the initial clone.
  368. #
  369. # if false, each repository HEAD will point to the FETCH_HEAD of the initial
  370. # clone from the origin until pushed to or otherwise manipulated.
  371. #
  372. # mergeAccounts:
  373. # if true, remote accounts and their permissions are merged into your
  374. # users.properties file
  375. #
  376. # notifyOnError:
  377. # if true and the mail configuration is properly set, administrators will be
  378. # notified by email of pull failures
  379. #
  380. # include and exclude:
  381. # Space-delimited list of repositories to include or exclude from pull
  382. # may be * wildcard to include or exclude all
  383. # may use fuzzy match (e.g. org.eclipse.*)
  384. #
  385. # (Nearly) Perfect Mirror example
  386. #
  387. #federation.example1.url = https://go.gitblit.com
  388. #federation.example1.token = 6f3b8a24bf970f17289b234284c94f43eb42f0e4
  389. #federation.example1.frequency = 120 mins
  390. #federation.example1.folder =
  391. #federation.example1.bare = true
  392. #federation.example1.mirror = true
  393. #federation.example1.mergeAccounts = true
  394. #
  395. # Server Settings
  396. #
  397. # The temporary folder to decompress the embedded gitblit webapp.
  398. #
  399. # SINCE 0.5.0
  400. # RESTART REQUIRED
  401. server.tempFolder = temp
  402. # Use Jetty NIO connectors. If false, Jetty Socket connectors will be used.
  403. #
  404. # SINCE 0.5.0
  405. # RESTART REQUIRED
  406. server.useNio = true
  407. # Context path for the GO application. You might want to change the context
  408. # path if running Gitblit behind a proxy layer such as mod_proxy.
  409. #
  410. # SINCE 0.7.0
  411. # RESTART REQUIRED
  412. server.contextPath = /
  413. # Standard http port to serve. <= 0 disables this connector.
  414. # On Unix/Linux systems, ports < 1024 require root permissions.
  415. # Recommended value: 80 or 8080
  416. #
  417. # SINCE 0.5.0
  418. # RESTART REQUIRED
  419. server.httpPort = 0
  420. # Secure/SSL https port to serve. <= 0 disables this connector.
  421. # On Unix/Linux systems, ports < 1024 require root permissions.
  422. # Recommended value: 443 or 8443
  423. #
  424. # SINCE 0.5.0
  425. # RESTART REQUIRED
  426. server.httpsPort = 8443
  427. # Specify the interface for Jetty to bind the standard connector.
  428. # You may specify an ip or an empty value to bind to all interfaces.
  429. # Specifying localhost will result in Gitblit ONLY listening to requests to
  430. # localhost.
  431. #
  432. # SINCE 0.5.0
  433. # RESTART REQUIRED
  434. server.httpBindInterface = localhost
  435. # Specify the interface for Jetty to bind the secure connector.
  436. # You may specify an ip or an empty value to bind to all interfaces.
  437. # Specifying localhost will result in Gitblit ONLY listening to requests to
  438. # localhost.
  439. #
  440. # SINCE 0.5.0
  441. # RESTART REQUIRED
  442. server.httpsBindInterface = localhost
  443. # Password for SSL keystore.
  444. # Keystore password and certificate password must match.
  445. # This is provided for convenience, its probably more secure to set this value
  446. # using the --storePassword command line parameter.
  447. #
  448. # SINCE 0.5.0
  449. # RESTART REQUIRED
  450. server.storePassword = gitblit
  451. # Port for shutdown monitor to listen on.
  452. #
  453. # SINCE 0.5.0
  454. # RESTART REQUIRED
  455. server.shutdownPort = 8081