标签:conf node header 登陆 http 手动 www. 创建 list
gerrit官方地址:https://www.gerritcodereview.com/
需先安装依赖 jdk mysql 并手动创建数据库
下载好war包后,初始化操作
java -jar gerrit-2.8.war init -d /etc/gerrit/
必须使用http代理才可访问
server { listen *:80; server_name node01 10.0.0.5; allow all; deny all; auth_basic "Welcomme to Gerrit Code Review Site!"; auth_basic_user_file /root/demo/gerrit/etc/htpasswd.conf; location /login { proxy_pass http://127.0.0.1:8081; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; } }
登陆时提示500错误 如下错误的原因为 /root/demo/gerrit/etc/htpasswd.conf 无权限或父级目录无权限
[2019-02-08 20:18:30,509] [HTTP-69] ERROR com.google.gerrit.httpd.auth.container.HttpLoginServlet : Unable to authenticate user by Authorization request header. Check container or server configuration.
标签:conf node header 登陆 http 手动 www. 创建 list
原文地址:https://www.cnblogs.com/LC161616/p/10356779.html