summaryrefslogtreecommitdiff
path: root/files/gerrit/lhg-review.linaro.org
blob: a51dcca5ea7dedf5160be17dbc3eaf708d3de8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[gerrit]
	basePath = /srv/repositories
	canonicalWebUrl = https://lhg-review.linaro.org/
        serverId = {{gerrit_config_server_id}}
[database]
	type = postgresql
	hostname = localhost
	database = reviewdb
	username = lhg
[auth]
        type = HTTP_LDAP
        logoutUrl = https://login.linaro.org
        cookieSecure = true
[ldap]
        server = ldaps://login.linaro.org
        username = cn=rhodecode,ou=binders,dc=linaro,dc=org
        accountBase = ou=accounts,dc=linaro,dc=org
        groupBase = ou=security,ou=groups,dc=linaro,dc=org
        referral = follow
        accountPattern = (mail=${username})
        accountSshUserName = uid
        accountEmailAddress = mail
        accountFullName = displayName
        groupScope = subtree
        groupMemberPattern = (|(memberUid=${uid})(gidNumber=${gidNumber}))
[sendemail]
        smtpServer = localhost
        expiryDays = 15
        includeDiff = true
        maximumDiffSize = 512k
	replyToAddress = review@lhg-review.linaro.org
{% if gerrit_config_dovecot_user is defined and gerrit_config_dovecot_password is defined %}
[receiveemail]
        protocol = IMAP
        host = localhost
        username = {{ gerrit_config_dovecot_user }}
{% endif %}
[container]
	user = git
	javaHome = /usr/lib/jvm/java-8-openjdk-amd64/jre
	heapLimit = 1500m
[sshd]
        listenAddress = *:29418
        idleTimeout = 5 min
        backend = NIO2
        loginGraceTime = 1 min
        batchThreads = 4
        maxAuthTries = 4
[httpd]
        listenUrl = proxy-https://*:8081/
[cache]
        directory = cache
[cache "web_session"]
        maxAge = 2 weeks
[cache "ldap_groups"]
        maxAge = 2 hours
[commentlink "bugzilla"]
        match = "(bug\\s+#?)(\\d+)"
        link = https://bugs.linaro.org/show_bug.cgi?id=$2
[download]
        scheme = ssh
[theme]
        selectionColor = FFFEAE
[user]
        name = Linaro Private Code Review
        email = review@lhg-review.linaro.org
[core]
        streamFileThreshold = 512m
[gitweb]
        type = gitweb
        cgi = /usr/lib/cgi-bin/gitweb.cgi
        revision = "?p=${project}.git;a=commitdiff;h=${commit}"
        linkDrafts = false
[site]
	enableDeprecatedQuery = false
[commitmessage]
        maxSubjectLength = 70
        maxLineLength = 80
        rejectTooLong = false
[index]
	type = LUCENE