源站支持HTTP/2

This commit is contained in:
GoEdgeLab
2023-06-23 11:43:36 +08:00
parent d1c8f995ce
commit cad128451c
12 changed files with 158 additions and 119 deletions
@@ -109,6 +109,7 @@ Vue.component("origin-list-table", {
<tiny-basic-label v-if="origin.hasCert">证书</tiny-basic-label>
<tiny-basic-label v-if="origin.host != null && origin.host.length > 0">主机名: {{origin.host}}</tiny-basic-label>
<tiny-basic-label v-if="origin.followPort">端口跟随</tiny-basic-label>
<tiny-basic-label v-if="origin.addr != null && origin.addr.startsWith('https://') && origin.http2Enabled">HTTP/2</tiny-basic-label>
<span v-if="origin.domains != null && origin.domains.length > 0"><tiny-basic-label v-for="domain in origin.domains">匹配: {{domain}}</tiny-basic-label></span>
<span v-else-if="hasMatchedDomains"><tiny-basic-label>匹配: 所有域名</tiny-basic-label></span>
@@ -70,7 +70,14 @@
<td>端口跟随</td>
<td>
<checkbox name="followPort"></checkbox>
<p class="comment">选中后表示源站的端口保持和用户访问的服务端口保持一致;此时的源站地址中的端口号可以任意填写。</p>
<p class="comment">选中后表示源站的端口保持和用户访问的服务端口保持一致;此时的源站地址中的端口号可以任意填写。</p>
</td>
</tr>
<tr v-show="!isOSS && protocol == 'https'">
<td>支持HTTP/2</td>
<td>
<checkbox name="http2Enabled"></checkbox>
<p class="comment">选中后,表示源站支持HTTP/2协议。</p>
</td>
</tr>
</tbody>
@@ -76,6 +76,13 @@
<p class="comment">选中后表示源站的端口保持和用户访问的服务端口保持一致;此时的源站地址中的端口号可以任意填写。</p>
</td>
</tr>
<tr v-show="!isOSS && protocol == 'https'">
<td>支持HTTP/2</td>
<td>
<checkbox name="http2Enabled"></checkbox>
<p class="comment">选中后,表示源站支持HTTP/2协议。</p>
</td>
</tr>
<tr>
<td>权重</td>
<td>
@@ -77,6 +77,13 @@
<p class="comment">选中后表示源站的端口保持和用户访问的服务端口保持一致;此时的源站地址中的端口号可以任意填写。</p>
</td>
</tr>
<tr v-show="!isOSS && origin.protocol == 'https'">
<td>支持HTTP/2</td>
<td>
<checkbox name="http2Enabled" v-model="origin.http2Enabled"></checkbox>
<p class="comment">选中后,表示源站支持HTTP/2协议。</p>
</td>
</tr>
<tr>
<td>权重</td>
<td>