Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e4acc327d | ||
|
|
f73251f57d |
@@ -13,6 +13,9 @@ type AdminUIConfig struct {
|
|||||||
DefaultPageSize int `json:"defaultPageSize"` // 默认每页显示数
|
DefaultPageSize int `json:"defaultPageSize"` // 默认每页显示数
|
||||||
TimeZone string `json:"timeZone"` // 时区
|
TimeZone string `json:"timeZone"` // 时区
|
||||||
Modules []string `json:"modules"` // 开通模块
|
Modules []string `json:"modules"` // 开通模块
|
||||||
|
DNSResolver struct {
|
||||||
|
Type string `json:"type"` // 类型,参考 DNSResolverType*
|
||||||
|
} `json:"dnsResolver"` // DNS解析设置
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *AdminUIConfig) ContainsModule(module string) bool {
|
func (this *AdminUIConfig) ContainsModule(module string) bool {
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ type UserUIConfig struct {
|
|||||||
|
|
||||||
TimeZone string `json:"timeZone"` // 时区
|
TimeZone string `json:"timeZone"` // 时区
|
||||||
|
|
||||||
|
DNSResolver struct {
|
||||||
|
Type string `json:"type"` // 类型,参考 DNSResolverType*
|
||||||
|
} `json:"dnsResolver"` // DNS解析设置
|
||||||
|
|
||||||
ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表
|
ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表
|
||||||
|
|
||||||
Server struct {
|
Server struct {
|
||||||
@@ -58,6 +62,9 @@ func NewUserUIConfig() *UserUIConfig {
|
|||||||
TimeZone: "Asia/Shanghai",
|
TimeZone: "Asia/Shanghai",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DNS解析设置
|
||||||
|
config.DNSResolver.Type = "default"
|
||||||
|
|
||||||
// 服务相关
|
// 服务相关
|
||||||
config.Server.CheckCNAME = true
|
config.Server.CheckCNAME = true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user