簡體   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