mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 21:24:33 +08:00 
			
		
		
		
	网站全局设置增加“强制Ln请求“选项
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user