允许在集群设置 -- “网站设置” 中设置节点IP访问显示的内容

This commit is contained in:
GoEdgeLab
2023-06-05 19:26:55 +08:00
parent d5c2c12817
commit 24db40540b
2 changed files with 25 additions and 5 deletions

View File

@@ -64,6 +64,7 @@ p { color: grey; }
</body>
</html>`
}
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