mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 13:18:13 -05:00
3b5ee464a7
* feat: add ddns updater framework Note: no functionality implemented yet * feat: add webhook ddns provider * feat: update dashboard template * fix: check nil and cron task string * fix: webhook string formated with unexcepted param * fix: webhook header split error * feat: cloudflare ddns provider * refract: move ddns update trigger into ReportSystemInfo * lang: update other languages text * fix: clear codes and logics * fix: move update ddns to goroutine to avoid blocking * fix: clear unused codes * fix: update timestamp to prevent cache
64 lines
2.9 KiB
HTML
Vendored
64 lines
2.9 KiB
HTML
Vendored
{{define "component/server"}}
|
|
<div class="ui tiny server modal transition hidden">
|
|
<div class="header">{{tr "AddServer"}}</div>
|
|
<div class="content">
|
|
<form id="serverForm" class="ui form">
|
|
<input type="hidden" name="id">
|
|
<div class="field">
|
|
<label>{{tr "Name"}}</label>
|
|
<input type="text" name="name" placeholder="{{tr "EinsteinLightspeed1"}}">
|
|
</div>
|
|
<div class="field">
|
|
<label>{{tr "ServerGroup"}}</label>
|
|
<input type="text" name="Tag" placeholder="{{tr "ServerGroup"}}">
|
|
</div>
|
|
<div class="field">
|
|
<label>{{tr "DisplayIndex"}}</label>
|
|
<input type="number" name="DisplayIndex" placeholder="{{tr "TheLargerTheNumberTheHigherThePriority"}}">
|
|
</div>
|
|
<div class="secret field">
|
|
<label>{{tr "Secret"}}</label>
|
|
<input type="text" name="secret">
|
|
</div>
|
|
<div class="field">
|
|
<div class="ui hideforguest checkbox">
|
|
<input name="HideForGuest" type="checkbox" tabindex="0" class="hidden" />
|
|
<label>{{tr "HideForGuest"}}</label>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<div class="ui enableddns checkbox">
|
|
<input name="EnableDDNS" type="checkbox" tabindex="0" />
|
|
<label>{{tr "EnableDDNS"}}</label>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label>{{tr "DDNSDomain"}}</label>
|
|
<input type="text" name="DDNSDomain" placeholder="{{tr "DDNSDomain"}}">
|
|
</div>
|
|
<div class="field">
|
|
<label>{{tr "Note"}}</label>
|
|
<textarea name="Note"></textarea>
|
|
</div>
|
|
<div class="command field">
|
|
<label>{{tr "LinuxOneKeyInstall"}}</label>
|
|
<div class="ui message">
|
|
{{if .Conf.GRPCHost}}
|
|
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">{{.Conf.GRPCHost}}</code> <code
|
|
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>
|
|
{{else}}
|
|
{{tr "NoDomainAlert"}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class=" actions">
|
|
<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>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
{{end}} |