From 67881c2e347ff78d6e74e9726f82f517c2c29f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 24 May 2023 17:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=AB=99=E5=85=A8=E5=B1=80=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=AD=E5=A2=9E=E5=8A=A0=E2=80=9C=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E8=AF=81=E4=B9=A6=E2=80=9D=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cluster/settings/global-server-config/index.go | 4 +++- .../cluster/settings/global-server-config/index.html | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go b/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go index e44354d6..aff4bb0e 100644 --- a/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go +++ b/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go @@ -78,7 +78,8 @@ func (this *IndexAction) RunPost(params struct { HttpAllAllowNodeIP bool HttpAllDefaultDomain string - HttpAllSupportsLowVersionHTTP bool + HttpAllSupportsLowVersionHTTP bool + HttpAllMatchCertFromAllServers bool HttpAccessLogEnableRequestHeaders bool HttpAccessLogEnableResponseHeaders bool @@ -138,6 +139,7 @@ func (this *IndexAction) RunPost(params struct { // HTTP All config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP + config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers // 访问日志 config.HTTPAccessLog.EnableRequestHeaders = params.HttpAccessLogEnableRequestHeaders diff --git a/web/views/@default/clusters/cluster/settings/global-server-config/index.html b/web/views/@default/clusters/cluster/settings/global-server-config/index.html index b657983a..d827f528 100644 --- a/web/views/@default/clusters/cluster/settings/global-server-config/index.html +++ b/web/views/@default/clusters/cluster/settings/global-server-config/index.html @@ -131,6 +131,13 @@

选中后,表示支持HTTP/1.0、HTTP/0.9等低于HTTP/1.1版本的HTTP协议。低版本HTTP协议不支持分段传输内容,且无法保持连接,对系统性能有严重的负面影响。建议只有在你的用户正在使用非常老旧的设备时才启用此选项。

+ + 自动匹配证书 + + +

选中后,表示找不到证书时自动查找其他网站设置的证书。此功能仅仅为了兼容以往系统版本,可能会导致用户访问的网站混乱,所以请不要轻易启用。

+ +