mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-12 19:30:25 +08:00
集群服务设置增加“支持低版本HTTP”选项
This commit is contained in:
@@ -4,11 +4,15 @@ package serverconfigs
|
||||
|
||||
func DefaultGlobalServerConfig() *GlobalServerConfig {
|
||||
var config = &GlobalServerConfig{}
|
||||
config.HTTPAll.SupportsLowVersionHTTP = false
|
||||
|
||||
config.HTTPAccessLog.EnableRequestHeaders = true
|
||||
config.HTTPAccessLog.EnableResponseHeaders = true
|
||||
config.HTTPAccessLog.EnableCookies = true
|
||||
config.HTTPAccessLog.EnableServerNotFound = true
|
||||
|
||||
config.Log.RecordServerError = false
|
||||
|
||||
config.Performance.AutoWriteTimeout = true
|
||||
config.Performance.AutoReadTimeout = true
|
||||
config.Stat.Upload.MaxCities = 32
|
||||
@@ -26,6 +30,8 @@ type GlobalServerConfig struct {
|
||||
AllowNodeIP bool `yaml:"allowNodeIP" json:"allowNodeIP"` // 允许IP直接访问
|
||||
DefaultDomain string `yaml:"defaultDomain" json:"defaultDomain"` // 默认的域名
|
||||
DomainMismatchAction *DomainMismatchAction `yaml:"domainMismatchAction" json:"domainMismatchAction"` // 不匹配时采取的动作
|
||||
|
||||
SupportsLowVersionHTTP bool `yaml:"supportsLowVersionHTTP" json:"supportsLowVersionHTTP"` // 是否启用低版本HTTP
|
||||
} `yaml:"httpAll" json:"httpAll"` // HTTP统一配置
|
||||
|
||||
HTTPAccessLog struct {
|
||||
|
||||
Reference in New Issue
Block a user