使用gerrit启用https会导致502坏网关



我添加了一个负载均衡器,它将https流量路由到我拥有的gerrit实例(到端口8080(。

使用tcpdump,我确实看到,如果我访问https://foo.gerrit.bar,就会有端口8080的流量进入我的gerrit实例。

我认为gerrit配置缺少一些东西。

我只添加了httpd反向代理设置:

[httpd]
listenUrl = proxy-http://127.0.0.1:8080/r/

所以,这似乎是一个愚蠢的拼写错误,我想把它放在这里,以防其他人把它复制粘贴到某个地方(又名复制意大利面(。

[httpd]
listenUrl = proxy-https://127.0.0.1:8080/r/

proxy-https而非proxy-http

最新更新