繁体   English   中英

github webhook 无法使用公共 ip 连接到 jenkins

[英]github webhook fails to connect to jenkins with public ip

我正在尝试使用我的 jenkins 服务器配置 github webhook,但我一直“无法连接”。 请注意,我使用的是公共 ip而不是私有或本地地址,起初,我的防火墙阻止了 icmp 协议,但即使允许它,它仍然无法工作。

However, when I proxy my server (using smee client) and use the proxied url in the webhook instead, it works fine, so I thought the problem was jenkins url (in system configuration of jenkins) so I changed that to the public ip but它没有任何影响,现在我一无所知。

可能值得一提的是 jenkins 正在 docker 容器上运行,

Apparently the webhook must pass through a web server and not to jenkins directly, So I configured nginx as a reverse proxy to jenkins server and it worked fine.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM