集群设置--网站设置增加“服务器旗标”设置

This commit is contained in:
GoEdgeLab
2023-07-12 17:39:04 +08:00
parent 0cb5234776
commit 5176a9ea41
2 changed files with 11 additions and 2 deletions

View File

@@ -81,10 +81,11 @@ func (this *IndexAction) RunPost(params struct {
HttpAllDefaultDomain string HttpAllDefaultDomain string
HttpAllNodeIPPageHTML string HttpAllNodeIPPageHTML string
HttpAllNodeIPShowPage bool HttpAllNodeIPShowPage bool
HttpAllForceLnRequest bool
HttpAllServerName string
HttpAllSupportsLowVersionHTTP bool HttpAllSupportsLowVersionHTTP bool
HttpAllMatchCertFromAllServers bool HttpAllMatchCertFromAllServers bool
HttpAllForceLnRequest bool
HttpAccessLogIsOn bool HttpAccessLogIsOn bool
HttpAccessLogEnableRequestHeaders bool HttpAccessLogEnableRequestHeaders bool
@@ -146,6 +147,7 @@ func (this *IndexAction) RunPost(params struct {
config.HTTPAll.NodeIPPageHTML = params.HttpAllNodeIPPageHTML config.HTTPAll.NodeIPPageHTML = params.HttpAllNodeIPPageHTML
// HTTP All // HTTP All
config.HTTPAll.ServerName = params.HttpAllServerName
config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP
config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers
config.HTTPAll.ForceLnRequest = params.HttpAllForceLnRequest config.HTTPAll.ForceLnRequest = params.HttpAllForceLnRequest

View File

@@ -147,7 +147,14 @@
<h4>其他</h4> <h4>其他</h4>
<table class="ui table definition selectable"> <table class="ui table definition selectable">
<tr> <tr>
<td class="title">支持低版本HTTP</td> <td class="title">服务器旗标</td>
<td>
<input type="text" name="httpAllServerName" v-model="config.httpAll.serverName" maxlength="60"/>
<p class="comment">服务器旗标会以<code-label>Server: 旗标</code-label>的形式出现在响应报头中。</p>
</td>
</tr>
<tr>
<td>支持低版本HTTP</td>
<td> <td>
<checkbox name="httpAllSupportsLowVersionHTTP" v-model="config.httpAll.supportsLowVersionHTTP"></checkbox> <checkbox name="httpAllSupportsLowVersionHTTP" v-model="config.httpAll.supportsLowVersionHTTP"></checkbox>
<p class="comment">选中后表示支持HTTP/1.0、HTTP/0.9等低于HTTP/1.1版本的HTTP协议。低版本HTTP协议不支持分段传输内容且无法保持连接对系统性能有严重的负面影响。建议只有在你的用户正在使用非常老旧的设备时才启用此选项。</p> <p class="comment">选中后表示支持HTTP/1.0、HTTP/0.9等低于HTTP/1.1版本的HTTP协议。低版本HTTP协议不支持分段传输内容且无法保持连接对系统性能有严重的负面影响。建议只有在你的用户正在使用非常老旧的设备时才启用此选项。</p>