Files
EdgeAdmin/web/views/@default/settings/security/index.html
2021-08-11 09:36:16 +08:00

55 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{$layout}
<div class="margin"></div>
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
<csrf-token></csrf-token>
<table class="ui table definition selectable">
<tr>
<td class="title">Frame嵌套条件</td>
<td>
<select class="ui dropdown auto-width" name="frame" v-model="config.frame">
<option value="">不限制</option>
<option value="SAMEORIGIN">仅限同域名</option>
<!--<option value="DENY">完全禁止</option>-->
</select>
<p class="comment">当前服务被别的网页框架嵌套的条件限制。</p>
</td>
</tr>
<tr>
<td>允许访问的国家和地区</td>
<td>
<countries-selector :v-countries="countries"></countries-selector>
<p class="comment">设置后,只有这些国家和地区才能访问管理界面,如果不设置表示没有限制。</p>
</td>
</tr>
<tr>
<td>允许访问的省份(中国)</td>
<td>
<provinces-selector :v-provinces="provinces"></provinces-selector>
<p class="comment">设置后,只有这些省份才能访问管理界面,如果不设置表示没有限制。</p>
</td>
</tr>
<tr>
<td>允许访问的IP</td>
<td>
<values-box name="allowIPs" placeholder="IP或者CIDR IP段" :values="config.allowIPs"></values-box>
<p class="comment">如果不为空,则<strong>仅仅允许</strong>这些IP访问其他的IP访问时会被拒绝。</p>
</td>
</tr>
<tr>
<td>允许局域网访问</td>
<td>
<checkbox name="allowLocal" v-model="config.allowLocal"></checkbox>
<p class="comment">选中表示允许在本机和局域网访问。</p>
</td>
</tr>
<tr>
<td>允许记住登录</td>
<td>
<checkbox name="allowRememberLogin" v-model="config.allowRememberLogin"></checkbox>
<p class="comment">选中表示允许在登录界面可以选择记住登录。</p>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>