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}变量,表示访客当前正在访问的服务器地址。

+ +