mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
尝试自动在firewalld中开放端口
This commit is contained in:
@@ -72,6 +72,7 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
"timeZone": cluster.TimeZone,
|
"timeZone": cluster.TimeZone,
|
||||||
"nodeMaxThreads": cluster.NodeMaxThreads,
|
"nodeMaxThreads": cluster.NodeMaxThreads,
|
||||||
"nodeTCPMaxConnections": cluster.NodeTCPMaxConnections,
|
"nodeTCPMaxConnections": cluster.NodeTCPMaxConnections,
|
||||||
|
"autoOpenPorts": cluster.AutoOpenPorts,
|
||||||
}
|
}
|
||||||
|
|
||||||
// 默认值
|
// 默认值
|
||||||
@@ -92,6 +93,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
TimeZone string
|
TimeZone string
|
||||||
NodeMaxThreads int32
|
NodeMaxThreads int32
|
||||||
NodeTCPMaxConnections int32
|
NodeTCPMaxConnections int32
|
||||||
|
AutoOpenPorts bool
|
||||||
|
|
||||||
Must *actions.Must
|
Must *actions.Must
|
||||||
}) {
|
}) {
|
||||||
@@ -117,6 +119,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
TimeZone: params.TimeZone,
|
TimeZone: params.TimeZone,
|
||||||
NodeMaxThreads: params.NodeMaxThreads,
|
NodeMaxThreads: params.NodeMaxThreads,
|
||||||
NodeTCPMaxConnections: params.NodeTCPMaxConnections,
|
NodeTCPMaxConnections: params.NodeTCPMaxConnections,
|
||||||
|
AutoOpenPorts: params.AutoOpenPorts,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
this.ErrorPage(err)
|
this.ErrorPage(err)
|
||||||
|
|||||||
@@ -59,6 +59,13 @@
|
|||||||
<p class="comment">如果为0,则默认为{{defaultNodeTCPMaxConnections}}。</p>
|
<p class="comment">如果为0,则默认为{{defaultNodeTCPMaxConnections}}。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>自动开放端口</td>
|
||||||
|
<td>
|
||||||
|
<checkbox name="autoOpenPorts" v-model="cluster.autoOpenPorts"></checkbox>
|
||||||
|
<p class="comment">选中后会自动尝试在边缘节点正在运行的firewalld中开放所需端口;如果有别的防火墙或者安全策略,仍然需要手工操作。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn></submit-btn>
|
||||||
|
|||||||
Reference in New Issue
Block a user