Files
Mateusz Gruszczyński de13d851a8
Go quality gates / test (push) Waiting to run
v0.1.1
2026-11-30 14:44:28 +01:00

16 lines
4.2 KiB
Go Template

{{define "content"}}
{{if .CanEditMultiServer}}
<section class="panel panel-preferences" id="multi-server-preference">
<div class="panel-head"><div><h2>Panel settings · Multi-server management</h2><p>Optional management of multiple independent EasyDNS installations.</p></div><span class="tag {{if .MultiServer}}green{{else}}muted-tag{{end}}">{{if .MultiServer}}ENABLED{{else}}DISABLED BY DEFAULT{{end}}</span></div>
<form method="post" action="/configuration/multi-server" class="preference-body"><input type="hidden" name="_csrf" value="{{.CSRF}}">
<label class="preference-label" for="enable-multiserver"><span class="preference-title">Enable multi-server management</span><span class="preference-description">Show the Servers topology, switch between installations and compare zone serials. When disabled, the panel works exactly as before with your local EasyDNS instance.</span></label>
<div class="preference-controls"><label class="preference-switch" for="enable-multiserver"><input type="checkbox" id="enable-multiserver" name="enabled" value="on" {{if .MultiServer}}checked{{end}}><span>Enable</span></label><button type="submit" class="btn-ui btn-primary-ui">Save panel setting</button></div>
</form>
<div class="preference-note">This setting affects the <strong>web panel only</strong>. No DNS server configuration, AXFR/IXFR links or NOTIFY targets are changed. Previously saved remote connections are kept when the option is disabled. Remote APIs require HTTPS by default. Private-network HTTP is available only with EASYDNS_UI_ALLOW_INSECURE_HTTP=true; bearer tokens would then travel without encryption.</div>
</section>
{{end}}
<div class="form-layout policy-layout{{if .CanEditMultiServer}} mt-panel{{end}}"><section class="panel"><div class="panel-head"><div><h2>Visible runtime configuration</h2><p>Selected runtime parameters exposed by EasyDNS</p></div></div><div class="panel-body compact"><div class="data-row"><span>Server mode</span><strong>{{.Data.Status.Mode}}</strong></div><div class="data-row"><span>Version</span><strong>{{.Data.Status.Version}}</strong></div><div class="data-row"><span>Default resolution</span><strong>{{.Data.Status.Roles.DefaultResolution}}</strong></div><div class="data-row"><span>DNSSEC validation</span><strong>{{string .Data.Status.DNSSECValidation}}</strong></div><div class="data-row"><span>Block action</span><strong>{{string (get .Data.Policies.Policy "block_action")}}</strong></div><div class="data-row"><span>API allowed clients</span><strong>{{join .Data.Policies.APIAllowedClients ", "}}</strong></div><div class="data-row"><span>Recursion allowed clients</span><strong>{{join .Data.Policies.RecursionAllowedClients ", "}}</strong></div></div>
<div class="panel-head border-top"><div><h2>Hot reload</h2><p>Reload configuration from disk. EasyDNS reports errors and preserves prior active configuration.</p></div></div>
<form method="post" action="/configuration/reload" class="form-body"><input type="hidden" name="_csrf" value="{{.CSRF}}"><label class="field-label" for="reloadConfirm">Type RELOAD to confirm</label><input class="field mono" id="reloadConfirm" name="confirm" required pattern="RELOAD" autocomplete="off" placeholder="RELOAD"><div class="form-actions"><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="{{asset "icons.svg"}}#refresh"/></svg>Reload EasyDNS configuration</button></div></form></section>
<aside class="panel guide"><div class="panel-head"><div><h2>Configuration workflow</h2><p>Apply and verify your EasyDNS changes</p></div></div><div class="panel-body"><div class="data-row"><span>1. Update DNS configuration</span><strong>On the server</strong></div><p class="muted">Edit the EasyDNS configuration on the selected host, then use Hot reload to apply it.</p><div class="data-row"><span>2. Verify the service</span><strong>Check status</strong></div><p class="muted">Confirm health, readiness, server mode and zone state after a reload.</p><div class="data-row"><span>3. Review changes</span><strong>Audit log</strong></div><p class="muted">Inspect administrative events and investigate any failed operations.</p><div class="section-actions"><a class="btn-ui" href="/status">Server status</a><a class="btn-ui" href="/audit">Audit log</a></div></div></aside></div>{{end}}