仅Haproxy公共Jenkin Webhook

时间:2019-08-29 07:40:13

标签: bitbucket haproxy

我想允许Bitbucket在不通过haproxy公开整个端口(/ login,/ jobs ..)的情况下访问我的Jenkins回调[Private IP]:[PORT]/bitbucket-hook

1 个答案:

答案 0 :(得分:0)

找到了它,当后端路径与前端路径不同时,可以使用path_end转发请求或使用reqirep进行修改。

frontend http-in
  bind :444
  acl is-jenkin-callback path_end -i /bitbucket-hook
  use_backend jenkin-bitbucket-webhook if is-jenkin-callback