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 af121656..490bba68 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 @@ -64,6 +64,7 @@ p { color: grey; } ` } + this.Data["httpAllDomainMismatchActionContentHTML"] = httpAllDomainMismatchActionContentHTML this.Show() @@ -77,6 +78,8 @@ func (this *IndexAction) RunPost(params struct { HttpAllAllowMismatchDomainsJSON []byte HttpAllAllowNodeIP bool HttpAllDefaultDomain string + HttpAllNodeIPPageHTML string + HttpAllNodeIPShowPage bool HttpAllForceLnRequest bool HttpAllSupportsLowVersionHTTP bool @@ -137,6 +140,8 @@ func (this *IndexAction) RunPost(params struct { config.HTTPAll.AllowMismatchDomains = allowMismatchDomains config.HTTPAll.AllowNodeIP = params.HttpAllAllowNodeIP config.HTTPAll.DefaultDomain = params.HttpAllDefaultDomain + config.HTTPAll.NodeIPShowPage = params.HttpAllNodeIPShowPage + config.HTTPAll.NodeIPPageHTML = params.HttpAllNodeIPPageHTML // HTTP All config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP 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 3c8f4559..402d7868 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 @@ -18,9 +18,9 @@ - 页面提示 + 未绑定域名页面提示 - +

访问未绑定的域名时提示的文字,可以使用HTML;仅限于HTTP请求,不适于用HTTPS(HTTPS会提示证书错误)。

@@ -31,6 +31,14 @@

允许这些域名不经过绑定就可以直接访问网站。

+ + 默认域名 + + +

例外域名或使用节点IP访问时使用的默认域名。

+ + + 允许使用节点IP访问 @@ -39,10 +47,17 @@ - 默认域名 + 访问节点IP显示自定义内容 - -

例外域名或使用节点IP访问时使用的默认域名。

+ +

选中后,表示用户访问节点IP时显示自定义内容。

+ + + + 访问节点IP自定义内容 + + +

访问节点IP时要显示的自定义内容,支持HTML。