集群服务设置增加“记录找不到网站日志”选项

This commit is contained in:
GoEdgeLab
2023-03-07 10:30:44 +08:00
parent 5bd22ba4c3
commit 9a779bbc5f

View File

@@ -7,6 +7,7 @@ func DefaultGlobalServerConfig() *GlobalServerConfig {
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
@@ -28,6 +29,7 @@ type GlobalServerConfig struct {
CommonRequestHeadersOnly bool `yaml:"commonRequestHeadersOnly" json:"commonRequestHeadersOnly"` // 只保留通用Header
EnableResponseHeaders bool `yaml:"enableResponseHeaders" json:"enableResponseHeaders"` // 记录响应Header
EnableCookies bool `yaml:"enableCookies" json:"enableCookies"` // 记录Cookie
EnableServerNotFound bool `yaml:"enableServerNotFound" json:"enableServerNotFound"` // 记录服务找不到的日志
} `yaml:"httpAccessLog" json:"httpAccessLog"` // 访问日志配置
Performance struct {