新增http api与http文件访问ip白名单限制机制,默认禁止公网访问

This commit is contained in:
xia-chu
2023-07-26 16:33:21 +08:00
parent e8f8b48d38
commit 098046cb1d
6 changed files with 77 additions and 2 deletions

View File

@@ -254,6 +254,8 @@ extern const std::string kForbidCacheSuffix;
extern const std::string kForwardedIpHeader;
// 是否允许所有跨域请求
extern const std::string kAllowCrossDomains;
// 允许访问http api和http文件索引的ip地址范围白名单置空情况下不做限制
extern const std::string kAllowIPRange;
} // namespace Http
////////////SHELL配置///////////