网站全局设置增加“强制Ln请求“选项

This commit is contained in:
GoEdgeLab
2023-06-05 17:05:42 +08:00
parent 6ae286de6a
commit d5c2c12817
2 changed files with 9 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ func (this *IndexAction) RunPost(params struct {
HttpAllAllowMismatchDomainsJSON []byte
HttpAllAllowNodeIP bool
HttpAllDefaultDomain string
HttpAllForceLnRequest bool
HttpAllSupportsLowVersionHTTP bool
HttpAllMatchCertFromAllServers bool
@@ -140,6 +141,7 @@ func (this *IndexAction) RunPost(params struct {
// HTTP All
config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP
config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers
config.HTTPAll.ForceLnRequest = params.HttpAllForceLnRequest
// 访问日志
config.HTTPAccessLog.EnableRequestHeaders = params.HttpAccessLogEnableRequestHeaders

View File

@@ -138,6 +138,13 @@
<p class="comment">选中后,表示找不到证书时自动查找其他网站设置的证书。此功能仅仅为了兼容以往系统版本,可能会导致用户访问的网站混乱,所以请不要轻易启用。</p>
</td>
</tr>
<tr>
<td>强制Ln请求</td>
<td>
<checkbox name="httpAllForceLnRequest" v-model="config.httpAll.forceLnRequest"></checkbox>
<p class="comment">选中后所有请求优先发送到L2或者更高级别节点。默认不开启的情况下只有可以缓存的内容请求才会发送到L2或者更高级别节点。</p>
</td>
</tr>
</table>
<submit-btn></submit-btn>