gerrit.config sample

gerrit2很强大,以下是使用ldap账号设置的gerrit:

[gerrit]
        basePath = git
        canonicalWebUrl = http://code.corp.example.com


[database]
        type = H2
        database = db/ReviewDB


[auth]
        type = LDAP


[ldap]
        server = ldap://192.168.1.10


        accountBase = ou=People,dc=imd,dc=com
        accountPattern = (&(|(gidNumber=20000)(gidNumber=20001)(gidNumber=20005))(uid=${username}))
        accountFullName = cn
        accountEmailAddress = mail


        groupBase = ou=Group,dc=imd,dc=com
        groupMemberPattern = (&(objectClass=group)(member=${dn}))


[sendemail]
        smtpServer = smtp.gmail.com
        smtpServerPort = 465
        smtpEncryption = SSL
        form = ${user} <[email protected]>
        smtpUser = [email protected]
        smtpPass = passwordFORcode


[container]
        user = gerrit2
        javaHome = /usr/lib/jvm/java-6-openjdk/jre


[sshd]
        listenAddress = *:29418


[httpd]
        listenUrl = proxy-http://127.0.0.1:8080/


[cache]
        directory = cache


[user]
        email = [email protected]

你可能感兴趣的:(gerrit.config sample)