将节点的api.yaml改为api_node.yaml,并简化配置内容

This commit is contained in:
GoEdgeLab
2023-08-12 15:29:28 +08:00
parent 4900891d1c
commit 253b56dd99
2 changed files with 19 additions and 12 deletions

View File

@@ -143,10 +143,9 @@
<!-- 手动安装 --> <!-- 手动安装 -->
<div v-if="installMethod == 'manual'"> <div v-if="installMethod == 'manual'">
<div class="row">上传边缘节点程序到服务器并解压,然后在边缘节点安装目录下,复制<code-label>configs/api.template.yaml</code-label><code-label>configs/api.yaml</code-label>,修改文件里面的内容为以下内容:</div> <div class="row">上传边缘节点程序到服务器并解压,然后在边缘节点安装目录下,复制<code-label>configs/api_node.template.yaml</code-label><code-label>configs/api_node.yaml</code-label>,修改文件里面的内容为以下内容:</div>
<div class="margin"></div> <div class="margin"></div>
<source-code-box id="rpc-code" type="text/yaml">rpc: <source-code-box id="rpc-code" type="text/yaml">rpc.endpoints: [ {{apiEndpoints}} ]
endpoints: [ {{apiEndpoints}} ]
nodeId: "{{node.uniqueId}}" nodeId: "{{node.uniqueId}}"
secret: "{{node.secret}}"</source-code-box> secret: "{{node.secret}}"</source-code-box>
<div class="margin"></div> <div class="margin"></div>

View File

@@ -61,14 +61,19 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>配置文件<em>configs/api.yaml</em><br/> <td>配置文件</td>
<em><download-link :v-element="'rpc-code'" :v-file="'api.yaml'">[下载]</download-link ></em></td>
<td> <td>
<source-code-box id="rpc-code" type="text/yaml">rpc: configs/api_node.yaml &nbsp;
endpoints: [ {{apiEndpoints}} ] <download-link :v-element="'rpc-code'" :v-file="'api_node.yaml'">[下载]</download-link >
</td>
</tr>
<tr>
<td>配置内容</td>
<td>
<source-code-box id="rpc-code" type="text/yaml">rpc.endpoints: [ {{apiEndpoints}} ]
nodeId: "{{node.uniqueId}}" nodeId: "{{node.uniqueId}}"
secret: "{{node.secret}}"</source-code-box> secret: "{{node.secret}}"</source-code-box>
<p class="comment">手动替换edge-node安装目录下的<code-label>configs/api.yaml</code-label>文件,然后重新启动生效;如果此文件不存在,则需要创建。</p> <p class="comment">手动替换edge-node安装目录下的<code-label>configs/api_node.yaml</code-label>文件,然后重新启动生效;如果此文件不存在,则需要创建。</p>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -92,11 +97,14 @@ secret: "{{node.secret}}"</source-code-box>
<h4>配置文件</h4> <h4>配置文件</h4>
<table class="ui table definition selectable"> <table class="ui table definition selectable">
<tr> <tr>
<td class="title">配置文件<em>configs/api.yaml</em><br/> <td class="title">配置文件</td>
<em><download-link :v-element="'rpc-code'" :v-file="'api.yaml'">[下载]</download-link ></em></td>
<td> <td>
<source-code-box id="rpc-code" type="text/yaml">rpc: configs/api_node.yaml &nbsp; <download-link :v-element="'rpc-code'" :v-file="'api_node.yaml'">[下载]</download-link >
endpoints: [ {{apiEndpoints}} ] </td>
</tr>
<tr>
<td class="title">配置内容<td>
<source-code-box id="rpc-code" type="text/yaml">rpc.endpoints: [ {{apiEndpoints}} ]
nodeId: "{{node.uniqueId}}" nodeId: "{{node.uniqueId}}"
secret: "{{node.secret}}"</source-code-box> secret: "{{node.secret}}"</source-code-box>
</td> </td>