首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >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
3K0
举报
文章被收录于专栏:非著名运维非著名运维

报错信息:

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请求。

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-03-15,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 报错信息:
    • Gitlab配置webhook报错:Urlis blocked: Requests to the local network are not allowed解决。
    • 问题原因:
    • 解决方法:
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档