报错信息:
Gitlab配置webhook报错:Urlis blocked: Requests to the local network are not allowed解决。
代码语言:javascript复制Urlis blocked: Requests to the local network are not allowed
Urlis blocked: Requests to the local network are not allowed
Urlis blocked: Requests to the local network are not allowed
Urlis blocked: Requests to the local network are not allowed
Urlis blocked: Requests to the local network are not allowed
Urlis blocked: Requests to the local network are not allowed
问题原因:
在Gitlab 10.6以后的版本为了安全起见,默认不允许向本地网络发送webhook请求,但是可以使用管理员身份修改默认设置!
解决方法:
以管理员身份登录Gitlab后,进入adminarea,点击菜单(首页顶层一行有个小扳手图标)点击进入,接着左侧菜单栏---->settings(设置)下一级---->network(网络)---->outbound requests expend(外发请求)前面打勾(□ Allow requests to the local network from web hooks and services-允许Webhook和服务对本地网络的请求)即可!
配置后即可允许向本地网络发送webhook请求。