0
我開始使用Gerrit代碼審查,並堅持安裝。 gerrit中的「etc」文件夾中有gerrit.conf文件。與Gerrit安裝卡住
這是我的gerrit.config文件:
[gerrit]
basePath = git
canonicalWebUrl = http://localhost:8081/
[database]
type = mysql
hostname = localhost
database = reviewdb
username = gerrit2
[index]
type = LUCENE
[auth]
type = HTTP
[receive]
enableSignedPush = false
[sendemail]
smtpServer = localhost
[container]
user = mvemur001c
javaHome = C:\\Program Files\\Java\\jdk1.8.0_65\\jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = http://*:8081/
[cache]
directory = cache
我需要做什麼嗎?我應該寫下面的代碼嗎?如果其他地方應該寫這個Apache配置文件?
<VirtualHost *:8081>
ServerName localhost
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location "/login/">
AuthType Basic
AuthName "Gerrit Code Review"
AuthBasicProvider file
AuthUserFile /usr/local/apache/passwd/passwords
Require valid-user
</Location>
ProxyPass/http://localhost:8081/