增加防盗链功能

This commit is contained in:
GoEdgeLab
2022-09-22 16:33:42 +08:00
parent ca48be55c2
commit 4ddeeea2ac
5 changed files with 4151 additions and 3763 deletions
+1
View File
@@ -40,6 +40,7 @@ type HTTPWebConfig struct {
HostRedirects []*HTTPHostRedirectConfig `yaml:"hostRedirects" json:"hostRedirects"` // 主机跳转
Auth *HTTPAuthConfig `yaml:"auth" json:"auth"` // 认证配置
Referers *ReferersConfig `yaml:"referers" json:"referers"` // 防盗链设置
RemoteAddr *HTTPRemoteAddrConfig `yaml:"remoteAddr" json:"remoteAddr"` // 客户端IP获取方式
MergeSlashes bool `yaml:"mergeSlashes" json:"mergeSlashes"` // 是否合并路径中的斜杠(/