由于想搭建CI系统 gitlab+gerrit+jenkins

因此参考了http://longgeek.com/2013/12/26/ci-system-structures-iii-gerrit-installation-configuration/ 这篇文章

是 Nginx的,

然后我就各种收不到验证邮件了

下面是能用的配置

[gerrit]
	basePath = git
	canonicalWebUrl = http://127.0.0.1:8090/
[database]
	type = mysql
	hostname = localhost
	database = gerritdb
	username = gerrituser
[auth]
	type = HTTP
[sendemail]
	smtpServer = smtp.163.com
	smtpServerPort = 465
	smtpEncryption = ssl
	smtpUser = xxx@163.com
	smtpPass = xxxx
	sslVerify = false
	from=CodeReview<xxx@163.com>
[container]
	user = xxx
	javaHome = /usr/lib/jvm/java-6-openjdk-amd64/jre
[sshd]
	listenAddress = *:29418
[httpd]
	listenUrl = proxy-http://*:8090/
[cache]
	directory = cache

from这里是发件人的显示


哎 真的是很奇葩,这个要多试试才行

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐