暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片

Gitlab配置webhook报错:Urlis blocked: Requests to the local netwo..解决

非著名运维 2022-03-16
3075

报错信息:

  Gitlab配置webhook报错: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
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请求。




[]!

文章转载自非著名运维,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论