mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 13:18:13 -05:00
47 lines
1.9 KiB
HTML
Vendored
47 lines
1.9 KiB
HTML
Vendored
{{define "component/server"}}
|
|
<div class="ui tiny server modal transition hidden">
|
|
<div class="header">添加服务器</div>
|
|
<div class="content">
|
|
<form id="serverForm" class="ui form">
|
|
<input type="hidden" name="id">
|
|
<div class="field">
|
|
<label>名称</label>
|
|
<input type="text" name="name" placeholder="爱因斯坦-光速1号">
|
|
</div>
|
|
<div class="field">
|
|
<label>分组</label>
|
|
<input type="text" name="Tag" placeholder="服务器分组">
|
|
</div>
|
|
<div class="field">
|
|
<label>排序</label>
|
|
<input type="number" name="DisplayIndex" placeholder="越大越靠前">
|
|
</div>
|
|
<div class="secret field">
|
|
<label>密钥</label>
|
|
<input type="text" name="secret">
|
|
</div>
|
|
<div class="field">
|
|
<label>备注</label>
|
|
<textarea name="Note"></textarea>
|
|
</div>
|
|
|
|
<div class="command field">
|
|
<label>Agent 安装命令</label>
|
|
<div class="ui message">
|
|
<div class="header">
|
|
systemd
|
|
</div>
|
|
<div class="ui segment">
|
|
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh install_agent <code class="command GRPCHost"></code> <code class="command GRPCPort"></code> <code class="command hostSecret"></code>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class=" actions">
|
|
<div class="ui negative button">取消</div>
|
|
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
{{end}} |