#
# GitBlit custom settings
#

# Disable GitBlit Git Server, as Gerrit already serves Git repositories
git.cacheRepositoryList = false
git.enableGitServlet = false
git.onlyAccessBareRepositories = true

# Disable GitBlit's SSH daemon. Gerrit has one already.
git.sshPort = 0

# The ticket service would need the git servlet. Anyway, this is functionality
# provided by Gerrit.
tickets.service = com.googlesource.gerrit.plugins.gitblit.app.ReallyNullTicketService

# Disable the fanout service
fanout.port = 0

# Allow the user of GitBlit cookie authentication for avoiding overload on
# Gerrit authentication every time that a repository is browsed
web.allowCookieAuthentication = true

# Requires users to authenticate against Gerrit before giving any access
web.authenticateViewPages = false

# Disable GitBlit Web administration, as it supposed to be made on Gerrit init
web.allowAdministration = false
web.authenticateAdminPages = true

# Disable the ability to fork a repository
web.allowForking = false

# Disable GitBlit RPC services
web.enableRpcServlet = false
web.enableRpcManagement = false
web.enableRpcAdministration = false

# Disable the 'mount' of GitBlit parameters in the URL, it would mess-up the
# Gerrit plugins URLs generation and parsing of them when Gerrit repos have '/'
# in their name. Additionally avoid the usage of URL-encoded '/' (%2F) as it may
# be automatically decoded by reverse proxies and then even forbidden for security
# reasons.
web.mountParameters = false

web.allowZipDownloads = true
web.compressedDownloads = zip gz
