blob: 1be0d5464e337b448953d93cb93cc2caf3d8b73d [file] [log] [blame]
[gerrit]
basePath = git
canonicalWebUrl = http://localhost
serverId = 0f56469f-dfe4-4f28-aca7-803eba7845e0
[core]
packedGitLimit = {{ JGIT_CACHE_SIZE }}
[database]
type = h2
database = db/ReviewDB
[index]
type = LUCENE
[auth]
type = ldap
gitBasicAuth = true
{% if COOKIE_DOMAIN is defined %}
cookiedomain = .{{ COOKIE_DOMAIN }}
{% endif %}
[ldap]
server = {{ LDAP_SERVER }}
username = {{ LDAP_USERNAME }}
accountBase = {{ LDAP_ACCOUNT_BASE }}
accountPattern = (&(objectClass=person)(uid=${username}))
accountFullName = displayName
accountEmailAddress = mail
groupBase = {{ LDAP_GROUP_BASE }}
[sendemail]
smtpServer = {{ SMTP_SERVER }}
smtpEncryption = ssl
sslVerify = false
smtpUser = {{ SMTP_USER }}
enable = true
from = ${user} (Gerrit) <gerrit@{{ SMTP_DOMAIN }}>
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = http://*:8080/
filterClass = com.googlesource.gerrit.plugins.ootb.FirstTimeRedirect
firstTimeRedirectUrl = /login/%23%2F?account_id=1000000
requestLog = true
[cache]
directory = cache
[plugins]
allowRemoteAdmin = true
[container]
heapLimit = {{ GERRIT_HEAP_LIMIT }}
javaOptions = "-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance"
javaOptions = "-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance"
javaOptions = "-verbose:gc -XX:+PrintGCDetails -Xloggc:/var/gerrit/logs/gc_log"
user = gerrit
javaHome = /usr/lib/jvm/jre
javaOptions = -Djava.security.egd=file:/dev/./urandom
[receive]
enableSignedPush = false
{% if PROMETHEUS_BEARER_TOKEN is defined %}
[plugin "javamelody"]
allowTopMenu = true
prometheusBearerToken = {{ PROMETHEUS_BEARER_TOKEN }}
storage-directory = data/javamelody
[plugin "metrics-reporter-prometheus"]
prometheusBearerToken = {{ PROMETHEUS_BEARER_TOKEN }}
excludeMetrics = caches/.*
{% endif %}