Files
EdgeAdmin/web/views/@default/servers/server/settings/https/index.html

43 lines
2.0 KiB
HTML
Raw Normal View History

2020-08-21 12:32:16 +08:00
{$layout}
2020-10-01 16:01:04 +08:00
{$var "header"}
2020-11-24 17:36:42 +08:00
<script src="/servers/certs/datajs" type="text/javascript"></script>
2020-10-01 16:01:04 +08:00
<script src="/js/sortable.min.js" type="text/javascript"></script>
{$end}
2021-12-02 17:41:51 +08:00
{$template "../settings_menu"}
{$template "/left_menu_with_menu"}
<div class="right-box with-menu">
2020-09-30 17:46:38 +08:00
<p class="comment">提醒HTTP2、证书等信息修改后可能需要清空浏览器缓存后才能浏览效果。</p>
2020-11-10 12:47:24 +08:00
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
2020-09-16 09:09:10 +08:00
<input type="hidden" name="serverId" :value="serverId"/>
<input type="hidden" name="serverType" :value="serverType"/>
<table class="ui table selectable definition">
<tr>
2022-03-10 15:47:25 +08:00
<td class="title">启用HTTPS</td>
2020-09-16 09:09:10 +08:00
<td>
2020-09-28 16:25:26 +08:00
<div class="ui checkbox">
<input type="checkbox" name="isOn" value="1" v-model="httpsConfig.isOn"/>
<label></label>
</div>
2020-09-16 09:09:10 +08:00
</td>
</tr>
2020-09-28 16:25:26 +08:00
<tbody v-show="httpsConfig.isOn">
<tr>
<td class="title">绑定端口 *</td>
<td>
<span class="red" v-if="httpsConfig.isOn && (httpsConfig.addresses == null || httpsConfig.addresses.length == 0)">还没有添加端口绑定会导致HTTPS服务无法访问。</span>
2020-09-28 16:25:26 +08:00
<network-addresses-box :v-server-type="serverType" :v-addresses="httpsConfig.addresses" :v-protocol="'https'"></network-addresses-box>
<p class="comment"><span v-if="conflictingPorts.length > 0" class="red">配置错误:<span v-for="(port, index) in conflictingPorts">{{port}}<span v-if="index != conflictingPorts.length - 1"></span></span><span v-if="conflictingPorts.length > 1"></span>端口同HTTP设置的端口冲突请删除HTTP或HTTPS中的相关端口。</span></p>
2020-09-28 16:25:26 +08:00
</td>
</tr>
</tbody>
2020-09-16 09:09:10 +08:00
</table>
2020-10-01 16:01:04 +08:00
<!-- SSL配置 -->
2023-06-01 17:44:39 +08:00
<ssl-config-box :v-ssl-policy="httpsConfig.sslPolicy" :v-protocol="'https'" v-show="httpsConfig.isOn" :v-server-id="serverId" :v-support-http3="httpsConfig.supportsHTTP3"></ssl-config-box>
2020-10-01 16:01:04 +08:00
2020-09-16 09:09:10 +08:00
<submit-btn></submit-btn>
</form>
2020-08-21 12:32:16 +08:00
</div>