2019-12-08 10:18:29 -05:00
|
|
|
{{define "component/server"}}
|
|
|
|
<div class="ui tiny server modal transition hidden">
|
2022-04-28 22:52:26 -04:00
|
|
|
<div class="header">{{tr "AddServer"}}</div>
|
2019-12-08 10:18:29 -05:00
|
|
|
<div class="content">
|
|
|
|
<form id="serverForm" class="ui form">
|
2020-03-22 08:55:27 -04:00
|
|
|
<input type="hidden" name="id">
|
2019-12-08 10:18:29 -05:00
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Name"}}</label>
|
|
|
|
<input type="text" name="name" placeholder="{{tr "EinsteinLightspeed1"}}">
|
2019-12-08 10:18:29 -05:00
|
|
|
</div>
|
2021-01-12 01:09:25 -05:00
|
|
|
<div class="field">
|
2022-04-30 11:01:57 -04:00
|
|
|
<label>{{tr "ServerGroup"}}</label>
|
2022-04-28 22:52:26 -04:00
|
|
|
<input type="text" name="Tag" placeholder="{{tr "ServerGroup"}}">
|
2021-01-12 01:09:25 -05:00
|
|
|
</div>
|
2021-01-08 08:04:50 -05:00
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "DisplayIndex"}}</label>
|
|
|
|
<input type="number" name="DisplayIndex" placeholder="{{tr "TheLargerTheNumberTheHigherThePriority"}}">
|
2021-01-08 08:04:50 -05:00
|
|
|
</div>
|
2020-03-22 08:55:27 -04:00
|
|
|
<div class="secret field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Secret"}}</label>
|
2020-03-22 08:55:27 -04:00
|
|
|
<input type="text" name="secret">
|
|
|
|
</div>
|
2022-09-30 10:40:56 -04:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui hideforguest checkbox">
|
|
|
|
<input name="HideForGuest" type="checkbox" tabindex="0" class="hidden" />
|
|
|
|
<label>{{tr "HideForGuest"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-24 08:10:27 -05:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui enableddns checkbox">
|
|
|
|
<input name="EnableDDNS" type="checkbox" tabindex="0" />
|
|
|
|
<label>{{tr "EnableDDNS"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-29 23:00:55 -04:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui enableipv4 checkbox">
|
|
|
|
<input name="EnableIPv4" type="checkbox" tabindex="0" />
|
|
|
|
<label>{{tr "EnableIPv4"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui enableipv6 checkbox">
|
|
|
|
<input name="EnableIpv6" type="checkbox" tabindex="0" />
|
|
|
|
<label>{{tr "EnableIpv6"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-24 08:10:27 -05:00
|
|
|
<div class="field">
|
|
|
|
<label>{{tr "DDNSDomain"}}</label>
|
|
|
|
<input type="text" name="DDNSDomain" placeholder="{{tr "DDNSDomain"}}">
|
|
|
|
</div>
|
2024-04-27 01:36:36 -04:00
|
|
|
<div class="field">
|
|
|
|
<label>{{tr "DDNSProfile"}}</label>
|
|
|
|
<input type="text" name="DDNSProfile" placeholder="{{tr "DDNSProfile"}}">
|
|
|
|
</div>
|
2021-01-20 06:24:59 -05:00
|
|
|
<div class="field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "Note"}}</label>
|
2021-01-20 06:24:59 -05:00
|
|
|
<textarea name="Note"></textarea>
|
|
|
|
</div>
|
2021-08-09 23:19:31 -04:00
|
|
|
<div class="command field">
|
2022-04-28 22:52:26 -04:00
|
|
|
<label>{{tr "LinuxOneKeyInstall"}}</label>
|
2021-08-09 23:19:31 -04:00
|
|
|
<div class="ui message">
|
2021-08-10 08:04:58 -04:00
|
|
|
{{if .Conf.GRPCHost}}
|
|
|
|
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod
|
2024-06-25 10:15:49 -04:00
|
|
|
+x nezha.sh && ./nezha.sh install_agent <code class="command">{{.Conf.GRPCHost}}</code> <code
|
2021-11-10 23:49:54 -05:00
|
|
|
class="command">{{if .Conf.ProxyGRPCPort}}{{.Conf.ProxyGRPCPort}}{{else}}{{.Conf.GRPCPort}}{{end}}</code> <code
|
|
|
|
class="command hostSecret"></code> <code class="command">{{if .Conf.TLS}}--tls{{end}}</code>
|
2021-08-10 08:04:58 -04:00
|
|
|
{{else}}
|
2022-04-28 22:52:26 -04:00
|
|
|
{{tr "NoDomainAlert"}}
|
2021-08-10 08:04:58 -04:00
|
|
|
{{end}}
|
2021-08-09 23:19:31 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-08 10:18:29 -05:00
|
|
|
</form>
|
|
|
|
</div>
|
2020-03-22 08:55:27 -04:00
|
|
|
<div class=" actions">
|
2022-04-28 22:52:26 -04:00
|
|
|
<div class="ui negative button">{{tr "Cancel"}}</div>
|
|
|
|
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
|
2019-12-08 10:18:29 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|