14 lines
3.3 KiB
Go Template
14 lines
3.3 KiB
Go Template
{{define "content"}}
|
|
<div class="form-layout">
|
|
<section class="panel form-card"><div class="panel-head"><div><h2>Remote EasyDNS connection</h2><p>Add an existing installation. The server's DNS configuration is not modified.</p></div><span class="tag green">PANEL ONLY</span></div>
|
|
<div class="panel-body"><form method="post" action="/servers" autocomplete="off"><input type="hidden" name="_csrf" value="{{.CSRF}}">
|
|
<div class="field-row"><label for="node-name">Display name <strong class="required">*</strong></label><input class="field" id="node-name" name="name" maxlength="64" required placeholder="dns-secondary-01" value="{{selectval .Data.Form "name"}}"><small>Only used in the EasyDNS web panel.</small></div>
|
|
<div class="field-row"><label for="node-role">Topology label <strong class="required">*</strong></label><select class="field" id="node-role" name="role"><option value="secondary" {{if eq (selectval .Data.Form "role") "secondary"}}selected{{end}}>Secondary</option><option value="primary" {{if eq (selectval .Data.Form "role") "primary"}}selected{{end}}>Primary</option><option value="unassigned" {{if eq (selectval .Data.Form "role") "unassigned"}}selected{{end}}>Unassigned</option></select><small>Display label only. Does not convert zones or set up replication.</small></div>
|
|
<div class="field-row"><label for="node-url">EasyDNS API base URL <strong class="required">*</strong></label><input class="field mono" id="node-url" name="url" type="url" required placeholder="https://dns-secondary-01.example.net:9953" value="{{selectval .Data.Form "url"}}"><small>Remote URLs must use HTTPS with a trusted certificate. HTTP is allowed only on 127.0.0.1, ::1, or localhost (e.g., over an SSH tunnel). No path.</small></div>
|
|
<div class="field-row"><label for="node-token">Generated EasyDNS control token <strong class="required">*</strong></label><input class="field mono" id="node-token" name="token" type="password" required minlength="1" maxlength="4096" spellcheck="false" autocomplete="new-password" placeholder="Paste the token from the remote EasyDNS installation"><small>Stored in a private server-side file (0600); never returned to the browser or rendered in this form.</small></div>
|
|
<div class="form-actions"><a class="btn-ui" href="/servers">Cancel</a><button class="btn-ui btn-primary-ui" type="submit">Save connection</button></div>
|
|
</form></div></section>
|
|
<aside class="panel guide"><div class="panel-head"><h2>Before connecting</h2></div><div class="panel-body"><div class="data-row"><span>1. Install EasyDNS</span><strong>Each server</strong></div><p class="muted">Each remote server must run its own EasyDNS REST API and use its own generated control token.</p><div class="data-row"><span>2. Secure transport</span><strong>TLS or tunnel</strong></div><p class="muted">Protect the REST API behind an authenticated TLS endpoint or a private loopback tunnel. Never expose plain HTTP and bearer credentials over a network.</p><div class="data-row"><span>3. Configure DNS roles</span><strong>Outside panel</strong></div><p class="muted">Primary zones, secondary zones, source addresses, transfer ACLs and NOTIFY targets remain native EasyDNS configuration.</p><div class="data-row"><span>4. Review status</span><strong>Servers</strong></div><p class="muted">After saving, the Servers page probes each node and shows its actual health and zone counts.</p></div></aside>
|
|
</div>
|
|
{{end}}
|