From 9ec79adac6e07687d6f5ea58ff6abd3ece9345b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sat, 1 Apr 2023 09:52:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E6=9C=8D=E5=8A=A1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=8A=A0=E2=80=9C=E6=94=AF=E6=8C=81=E4=BD=8E?= =?UTF-8?q?=E7=89=88=E6=9C=ACHTTP=E2=80=9D=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/global_server_config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/serverconfigs/global_server_config.go b/pkg/serverconfigs/global_server_config.go index f43032f..99735a3 100644 --- a/pkg/serverconfigs/global_server_config.go +++ b/pkg/serverconfigs/global_server_config.go @@ -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 {