From 8e89d9a9ed360cb98fd1d9403ad0139baa33d348 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 19 Apr 2023 18:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E8=AE=BE=E7=BD=AE=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E2=80=9C=E6=A3=80=E6=9F=A5=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E6=8C=87=E7=BA=B9=E2=80=9D=E3=80=81=E2=80=9C=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=8C=BA=E5=9F=9F=E2=80=9D?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/systemconfigs/security_config.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkg/systemconfigs/security_config.go b/pkg/systemconfigs/security_config.go index 3ad7518..c3f46a4 100644 --- a/pkg/systemconfigs/security_config.go +++ b/pkg/systemconfigs/security_config.go @@ -4,15 +4,17 @@ import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared" // SecurityConfig 安全相关配置 type SecurityConfig struct { - Frame string `json:"frame"` // Frame嵌套 - AllowCountryIds []int64 `json:"allowCountryIds"` // 允许的国家/地区 - AllowProvinceIds []int64 `json:"allowProvinceIds"` // 允许的省份 - 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"` // 允许访问的域名 + Frame string `json:"frame"` // Frame嵌套 + AllowCountryIds []int64 `json:"allowCountryIds"` // 允许的国家/地区 + AllowProvinceIds []int64 `json:"allowProvinceIds"` // 允许的省份 + 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"` // 允许访问的域名 + CheckClientFingerprint bool `json:"checkClientFingerprint"` // 在登录状态下检查客户端指纹 + CheckClientRegion bool `json:"checkClientRegion"` // 在登录状态下检查客户端区域 allowIPRanges []*shared.IPRangeConfig }