开启使用web_hook - 1990bingliu/ubuntu_gitlab GitHub Wiki
如果使用web_hook
使用web_hook前,需要以管理员的身份登录后台设置允许来自钩子和服务的对本地网络的请求
- step.1 root权限登录gitlab
- step.2 进入
setting> 找到Outbound request> "Expend" - step.3 勾选
Allow requests to the local net work from hooks and services
则普通用户则可在自己项目中,进入setting > Integrations 添加自己的web hook
如果root帐户未设置 webhooks允许,则普通用户在给仓库添加 web hook时,将会报错
Urlis blocked: Requests to localhost are not allowed