2020-08-21 12:32:16 +08:00
|
|
|
|
{$layout}
|
2021-12-02 17:41:51 +08:00
|
|
|
|
{$template "../settings_menu"}
|
|
|
|
|
|
{$template "/left_menu_with_menu"}
|
2020-08-21 12:32:16 +08:00
|
|
|
|
|
2021-12-02 17:41:51 +08:00
|
|
|
|
<div class="right-box with-menu">
|
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"/>
|
2020-09-23 18:43:38 +08:00
|
|
|
|
<input type="hidden" name="webId" :value="webId"/>
|
2020-09-16 09:09:10 +08:00
|
|
|
|
<input type="hidden" name="serverType" :value="serverType"/>
|
|
|
|
|
|
<table class="ui table selectable definition">
|
|
|
|
|
|
<tr>
|
2020-09-28 16:25:26 +08:00
|
|
|
|
<td class="title">是否启用HTTP</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="httpConfig.isOn"/>
|
|
|
|
|
|
<label></label>
|
|
|
|
|
|
</div>
|
2020-09-23 18:43:38 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2020-09-28 16:25:26 +08:00
|
|
|
|
<tbody v-show="httpConfig.isOn">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td class="title">绑定端口 *</td>
|
|
|
|
|
|
<td>
|
2021-07-30 13:43:36 +08:00
|
|
|
|
<span class="red" v-if="httpConfig.isOn && (httpConfig.addresses == null || httpConfig.addresses.length == 0)">还没有添加端口绑定,会导致HTTP服务无法访问。</span>
|
2020-09-28 16:25:26 +08:00
|
|
|
|
<network-addresses-box :v-server-type="serverType" :v-addresses="httpConfig.addresses" :v-protocol="'http'"></network-addresses-box>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>自动跳转到HTTPS</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<http-redirect-to-https-box :v-redirect-to-https-config="redirectToHTTPSConfig"></http-redirect-to-https-box>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
2020-09-16 09:09:10 +08:00
|
|
|
|
</table>
|
|
|
|
|
|
<submit-btn></submit-btn>
|
|
|
|
|
|
</form>
|
2020-08-21 12:32:16 +08:00
|
|
|
|
</div>
|