安全设置中增加禁止搜索引擎、禁止爬虫、允许访问的域名等选项

This commit is contained in:
GoEdgeLab
2022-07-07 19:59:00 +08:00
parent f20dbf03b1
commit 59cc6c385a

View File

@@ -10,6 +10,9 @@ type SecurityConfig struct {
AllowLocal bool `json:"allowLocal"` // 允许本地+局域网IP访问
AllowIPs []string `json:"allowIPs"` // 允许访问的IP
AllowRememberLogin bool `json:"allowRememberLogin"` // 是否允许在设备上记住登录
DenySearchEngines bool `json:"denySearchEngines"` // 禁止常见的搜索引擎访问
DenySpiders bool `json:"denySpiders"` // 禁止常见的爬虫
AllowDomains []string `json:"allowDomains"` // 允许访问的域名
allowIPRanges []*shared.IPRangeConfig
}