From 1be13a151d6c35334299f7b007f6b4f8fc85b92c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 5 Jun 2023 17:05:42 +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=E5=A2=9E=E5=8A=A0=E2=80=9C=E5=BC=BA=E5=88=B6Ln?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E2=80=9C=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 | 2 ++ .../cluster/settings/global-server-config/index.html | 7 +++++++ 2 files changed, 9 insertions(+) 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 aff4bb0e..af121656 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 @@ -77,6 +77,7 @@ func (this *IndexAction) RunPost(params struct { HttpAllAllowMismatchDomainsJSON []byte HttpAllAllowNodeIP bool HttpAllDefaultDomain string + HttpAllForceLnRequest bool HttpAllSupportsLowVersionHTTP bool HttpAllMatchCertFromAllServers bool @@ -140,6 +141,7 @@ func (this *IndexAction) RunPost(params struct { // HTTP All config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers + config.HTTPAll.ForceLnRequest = params.HttpAllForceLnRequest // 访问日志 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 d827f528..3c8f4559 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 @@ -138,6 +138,13 @@

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

+ + 强制Ln请求 + + +

选中后,所有请求优先发送到L2或者更高级别节点。默认不开启的情况下,只有可以缓存的内容请求才会发送到L2或者更高级别节点。

+ +