mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-05 14:20:24 +08:00
用户界面设置增加“自动检查CNAME”选项
This commit is contained in:
@@ -19,6 +19,10 @@ type UserUIConfig struct {
|
|||||||
LogoFileId int64 `json:"logoFileId"` // Logo文件ID
|
LogoFileId int64 `json:"logoFileId"` // Logo文件ID
|
||||||
TimeZone string `json:"timeZone"` // 时区
|
TimeZone string `json:"timeZone"` // 时区
|
||||||
|
|
||||||
|
Server struct {
|
||||||
|
CheckCNAME bool `json:"checkCNAME"` // 是否检查CNAME
|
||||||
|
} `json:"server"` // 服务相关设置
|
||||||
|
|
||||||
BandwidthUnit BandwidthUnit `json:"bandwidthUnit"` // 带宽单位
|
BandwidthUnit BandwidthUnit `json:"bandwidthUnit"` // 带宽单位
|
||||||
ShowTrafficCharts bool `json:"showTrafficCharts"` // 是否显示流量相关图表和数据
|
ShowTrafficCharts bool `json:"showTrafficCharts"` // 是否显示流量相关图表和数据
|
||||||
ShowCacheInfoInTrafficCharts bool `json:"showCacheInfoInTrafficCharts"` // 在流量图中显示缓存相关信息
|
ShowCacheInfoInTrafficCharts bool `json:"showCacheInfoInTrafficCharts"` // 在流量图中显示缓存相关信息
|
||||||
@@ -44,6 +48,11 @@ func DefaultUserUIConfig() *UserUIConfig {
|
|||||||
ShowBandwidthCharts: true,
|
ShowBandwidthCharts: true,
|
||||||
ShowTrafficCharts: true,
|
ShowTrafficCharts: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 服务相关
|
||||||
|
config.Server.CheckCNAME = true
|
||||||
|
|
||||||
|
// 流量相关
|
||||||
config.TrafficStats.BandwidthPercentile = 95
|
config.TrafficStats.BandwidthPercentile = 95
|
||||||
config.TrafficStats.DefaultBandwidthDateRange = "latest30days"
|
config.TrafficStats.DefaultBandwidthDateRange = "latest30days"
|
||||||
return config
|
return config
|
||||||
|
|||||||
Reference in New Issue
Block a user