gerrit setting

1)apache2 setting--------------------
<VirtualHost *>
    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 /opt/gerrit_web/etc/passwords
        Require valid-user
    </Location>

    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/

</VirtualHost>

2) gerrit setting

[gerrit]
    basePath = git
    canonicalWebUrl = http://192.168.0.240


[database]
    type = h2
    database = db/ReviewDB


[index]
    type = LUCENE


[auth]
    type = http


[sendemail]
    enable=true
    smtpServer=xxxxxx
    smtpServerPort=25
    sslVerify=false
    smtpUser=gerrit@xxxxx
    smtpPass=xxxxxx
    from=gerrit@xxxxxxx


[container]
    user = jason
    javaHome=/opt/java/jdk1.7.0_67/jre


[sshd]
    listenAddress = *:29418


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


[cache]
    directory = cache


[accounts]
   visibility = ALL


[gitweb]
   cgi = /usr/share/gitweb/gitweb.cgi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值