From 4994dfb488d4f38e20253e7e71e1c35f2eb46d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 25 Aug 2023 15:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=AB=99=E8=AE=BE=E7=BD=AE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=98=AF=E5=90=A6=E6=94=AF=E6=8C=81${serverAddr}?= =?UTF-8?q?=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 b1e7dc7b..a77e2fd3 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 @@ -90,6 +90,7 @@ func (this *IndexAction) RunPost(params struct { HttpAllDefaultDomain string HttpAllNodeIPPageHTML string HttpAllNodeIPShowPage bool + HttpAllEnableServerAddrVariable bool HttpAllServerName string HttpAllSupportsLowVersionHTTP bool @@ -167,6 +168,7 @@ func (this *IndexAction) RunPost(params struct { config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers config.HTTPAll.ForceLnRequest = params.HttpAllForceLnRequest + config.HTTPAll.EnableServerAddrVariable = params.HttpAllEnableServerAddrVariable // 访问日志 config.HTTPAccessLog.IsOn = params.HttpAccessLogIsOn 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 fa0b7b47..9f874016 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 @@ -181,6 +181,13 @@

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

+ + 支持${serverAddr}变量 + + +

支持在自定义页面中使用${serverAddr}变量,表示访客当前正在访问的服务器地址。

+ +