美文网首页
Gerrit + Apache 配置

Gerrit + Apache 配置

作者: 大大世界 | 来源:发表于2015-08-27 16:25 被阅读1922次

Apache2 配置

httpd.conf 配置

<VirtualHost 192.168.1.74:8080>
    ServerName 192.168.1.74

    ProxyRequests Off
    ProxyVia Off
    ProxyPreserveHost On

    <Proxy *>
          Order deny,allow
          Allow from all
    </Proxy>

    <Location /login/>
      AuthType Basic
      AuthName "Gerrit Code Review"
      Require valid-user
      AuthBasicProvider file
      AuthUserFile /home/gerrit/etc/passwords
    </Location>

    AllowEncodedSlashes On
    ProxyPass / http://192.168.1.74:8081/
</VirtualHost>

Gerrit配置

gerrit.config

[gerrit]
    basePath = /home/gerrit/source
    canonicalWebUrl = http://192.168.1.74:8081
[database]
    type = h2
    database = db/reviewdb
[index]
    type = LUCENE
[auth]
    type = HTTP
    logoutUrl = http://www.baidu.com
[sendemail]
    smtpServer = smtp.163.com
    smtpServerPort = 465
    smtpEncryption = SSL
    smtpUser = eva_59421@163.com
    sslVerify = false
    from = eva_59421@163.com
[container]
    user = gerrit
    javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre
[sshd]
    listenAddress = *:29418
[httpd]
    listenUrl = http://192.168.1.74:8081/
[cache]
    directory = cache
[gitweb]
    cgi = /usr/lib/cgi-bin/gitweb.cgi

Host 配置Ip

/etc/hosts

192.168.1.74    gerrit2 

SSH 配置

~/.ssh/config

host gerrit
#hostname 192.168.1.132
hostname 122.226.207.19
user gankli
port 29418

host gerrit2
hostname 192.168.1.74
user gank
port 29418

相关文章

网友评论

      本文标题:Gerrit + Apache 配置

      本文链接:https://www.haomeiwen.com/subject/jqvhcttx.html