2020-10-10 20:28:36 +08:00
|
|
|
|
{$layout "layout_popup"}
|
|
|
|
|
|
|
|
|
|
|
|
<h3>添加API节点</h3>
|
2020-11-10 12:47:24 +08:00
|
|
|
|
<form class="ui form" method="post" data-tea-action="$" data-tea-success="success">
|
2020-09-06 16:19:34 +08:00
|
|
|
|
<table class="ui table selectable definition">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td class="title">节点名称 *</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<input type="text" name="name" maxlength="100" ref="focus"/>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2021-01-01 20:49:19 +08:00
|
|
|
|
<td>GRPC监听端口 *</td>
|
2020-09-06 16:19:34 +08:00
|
|
|
|
<td>
|
2020-10-04 14:27:05 +08:00
|
|
|
|
<network-addresses-box :v-name="'listensJSON'" :v-server-type="'httpWeb'" @change="changeListens"></network-addresses-box>
|
2021-01-01 20:49:19 +08:00
|
|
|
|
<p class="comment">通过GRPC访问API节点进程监听的网络端口。</p>
|
2020-10-04 14:27:05 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr v-if="hasHTTPS">
|
|
|
|
|
|
<td>HTTPS证书 *</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<ssl-certs-box :v-protocol="'https'"></ssl-certs-box>
|
2020-09-06 16:19:34 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2021-01-01 20:49:19 +08:00
|
|
|
|
<td>GRPC 外部访问地址 *</td>
|
2020-09-06 16:19:34 +08:00
|
|
|
|
<td>
|
2020-10-04 14:27:05 +08:00
|
|
|
|
<api-node-addresses-box :v-name="'accessAddrsJSON'"></api-node-addresses-box>
|
2021-01-01 20:49:19 +08:00
|
|
|
|
<p class="comment">边缘节点和管理平台等外部节点访问API节点的网络地址,需要保证其他节点能够通过此地址访问到API节点服务。</p>
|
2020-09-06 16:19:34 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td colspan="2"><more-options-indicator></more-options-indicator></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tbody v-show="moreOptionsVisible">
|
2021-01-01 20:49:19 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td :class="{'color-border': restIsOn}">是否开启HTTP API端口</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<checkbox name="restIsOn" v-model="restIsOn">是否启用HTTP API</checkbox>
|
|
|
|
|
|
<p class="comment">启用后用户可以通过HTTP API调用服务接口。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr v-if="restIsOn">
|
|
|
|
|
|
<td class="color-border">HTTP API监听端口</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<network-addresses-box :v-name="'restListensJSON'" :v-server-type="'httpWeb'" @change="changeRestListens"></network-addresses-box>
|
|
|
|
|
|
<p class="comment">HTTP API节点进程监听的网络端口。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2020-09-06 16:19:34 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td>描述</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<textarea name="description" maxlength="200" rows="3"></textarea>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2020-10-04 14:27:05 +08:00
|
|
|
|
<tr>
|
|
|
|
|
|
<td>是否启用</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<div class="ui checkbox">
|
|
|
|
|
|
<input type="checkbox" name="isOn" value="1" checked="checked"/>
|
|
|
|
|
|
<label></label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
2020-09-06 16:19:34 +08:00
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<submit-btn></submit-btn>
|
|
|
|
|
|
</form>
|