前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >Gitlab配置webhook报错:Urlis blocked: Requests to the local netwo..解决

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

作者头像
非著名运维
发布2022-06-22 16:20:16
发布2022-06-22 16:20:16
2.3K00
代码可运行
举报
文章被收录于专栏:非著名运维非著名运维
运行总次数:0
代码可运行

报错信息:

Gitlab配置webhook报错:Urlis blocked: Requests to the local network are not allowed解决。

代码语言:javascript
代码运行次数:0
复制
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请求。

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-03-15,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 非著名运维 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 报错信息:
    • Gitlab配置webhook报错:Urlis blocked: Requests to the local network are not allowed解决。
    • 问题原因:
    • 解决方法:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档