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.

setup_viewer.mkd 1.7KB

10 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ## Gitblit as a Viewer
  2. Gitblit is designed to be a complete Git server solution, however you may already have a Git serving solution such as ssh+gitolite or Gerrit. For these scenarios, you may configure Gitblit to be just a repository viewer.
  3. ### Lock-down your Viewer
  4. Here is an example configuration that disables all administration, all Git serving features, and requires an authenticated user to view anything.
  5. git.repositoriesFolder = ${baseFolder}/git
  6. git.cacheRepositoryList = true
  7. git.searchRepositoriesSubfolders = true
  8. git.searchRecursionDepth = -1
  9. git.searchExclusions =
  10. git.daemonPort = 0
  11. git.enableGitServlet = false
  12. git.enableGarbageCollection = false
  13. git.defaultAccessRestriction = VIEW
  14. web.authenticateViewPages = true
  15. web.allowAdministration = false
  16. web.enableRpcServlet = false
  17. web.enableRpcManagement = false
  18. web.enableRpcAdministration = false
  19. web.allowForking = false
  20. ### Tomcat or Reverse-Proxy Servers
  21. If you are running Gitblit on a Tomcat-based container you will likely run into forward-slash character troubles.
  22. To resolve this either set:
  23. web.mountParameters = false
  24. or
  25. web.forwardSlashCharacter = !
  26. ### Advertised Repository Urls
  27. You may also want to advertise repository urls for your other Git serving solution from Gitblit.
  28. - *{0}* is the token for the repository name
  29. - *{1}* is the token for the username
  30. The username is only practical if you have setup the account names for your other git serving solution to match the Gitblit account.
  31. web.otherUrls = ssh://localhost/git/{0} git://localhost:29418/git/{0} https://{1}@localhost/r/{0}