b93eb82cad
Will take effect when Zuul is running this change: I74702fd7d37358e6f4caa7e7ac0a3ede73184077 This change also adds that feature to the Zuul config and enables it for OpenStack. It also adds the ability to specify HTML in a commentlink (and uses it). Change-Id: Idb4ad8e6079165d681271987a92cab5d8b7c81be
95 lines
2.4 KiB
Plaintext
95 lines
2.4 KiB
Plaintext
# This file is managed by puppet.
|
|
# https://github.com/openstack-infra/config
|
|
|
|
[gerrit]
|
|
basePath = git
|
|
canonicalWebUrl = <%= canonicalweburl %>
|
|
[database]
|
|
type = MYSQL
|
|
hostname = localhost
|
|
database = reviewdb
|
|
username = gerrit2
|
|
<% if database_poollimit != "" -%>
|
|
poolLimit = <%= database_poollimit %>
|
|
<% end -%>
|
|
connectionpool = true
|
|
[auth]
|
|
type = OPENID_SSO
|
|
openIdSsoUrl = <%= openidssourl %>
|
|
cookieSecure = true
|
|
contributorAgreements = true
|
|
[sendemail]
|
|
smtpServer = localhost
|
|
[container]
|
|
user = gerrit2
|
|
javaHome = <%= java_home %>
|
|
<% if container_heaplimit != "" -%>
|
|
heapLimit = <%= container_heaplimit %>
|
|
<% end -%>
|
|
[core]
|
|
<% if core_packedgitopenfiles != "" -%>
|
|
packedGitOpenFiles = <%= core_packedgitopenfiles %>
|
|
<% end -%>
|
|
<% if core_packedgitlimit != "" -%>
|
|
packedGitLimit = <%= core_packedgitlimit %>
|
|
<% end -%>
|
|
<% if core_packedgitwindowsize != "" -%>
|
|
packedGitWindowSize = <%= core_packedgitwindowsize %>
|
|
<% end -%>
|
|
[sshd]
|
|
listenAddress = <%= sshd_listen_address %>
|
|
<% if sshd_threads != "" -%>
|
|
threads = <%= sshd_threads %>
|
|
<% end -%>
|
|
[httpd]
|
|
listenUrl = proxy-https://*:8081/
|
|
<% if httpd_maxwait != "" -%>
|
|
maxWait = <%= httpd_maxwait %>
|
|
<% end -%>
|
|
<% if httpd_acceptorthreads != "" -%>
|
|
acceptorThreads = <%= httpd_acceptorthreads %>
|
|
<% end -%>
|
|
<% if httpd_minthreads != "" -%>
|
|
minThreads = <%= httpd_minthreads %>
|
|
<% end -%>
|
|
<% if httpd_maxthreads != "" -%>
|
|
maxThreads = <%= httpd_maxthreads %>
|
|
<% end -%>
|
|
[cache]
|
|
directory = cache
|
|
[cache "web_sessions"]
|
|
maxAge = 1d
|
|
[user]
|
|
email = <%= email %>
|
|
<% commentlinks.each do |commentlink| -%>
|
|
[commentlink "<%= commentlink['name'] %>"]
|
|
match = "<%= commentlink['match'] %>"
|
|
<% if commentlink['link'] != "" -%>
|
|
link = "<%= commentlink['link'] %>"
|
|
<% end -%>
|
|
<% if commentlink['html'] != "" -%>
|
|
html = "<%= commentlink['html'] %>"
|
|
<% end -%>
|
|
<% end -%>
|
|
[theme]
|
|
backgroundColor = ffffff
|
|
topMenuColor = ffffff
|
|
textColor = 264d69
|
|
trimColor = eef3f5
|
|
selectionColor = d1e6ea
|
|
changeTableOutdatedColor = f5cccc
|
|
tableOddRowColor = ffffff
|
|
tableEvenRowColor = f5f5ff
|
|
[melody]
|
|
monitoring = <%= enable_melody %>
|
|
session = <%= melody_session %>
|
|
<% if gitweb -%>
|
|
[gitweb]
|
|
revision = "?p=${project}.git;a=commitdiff;h=${commit}"
|
|
<% end -%>
|
|
<% if contactstore == true -%>
|
|
[contactstore]
|
|
appsec = <%= contactstore_appsec %>
|
|
url = <%= contactstore_url %>
|
|
<% end -%>
|