mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-02 17:00:10 +00:00
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/d4f48d74-6e53-474c-b5bf-a9705525de45 Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
29 lines
3.6 KiB
Twig
29 lines
3.6 KiB
Twig
<details{% if desec_account_registered %} open{% endif %}>
|
||
<summary>Don't have a domain? Get a free one from deSEC</summary>
|
||
<p><a target="_blank" href="https://desec.io">deSEC</a> offers free dynamic DNS subdomains under <strong>dedyn.io</strong>. AIO can register an account and a subdomain for you automatically. The <strong>caddy</strong> community container will be enabled as a reverse proxy, the <strong>dnsmasq</strong> container will be enabled for local DNS resolution, and the mastercontainer will keep your DNS record up to date automatically.</p>
|
||
{% if desec_account_registered %}
|
||
<p>Your deSEC account (<strong>{{ desec_email }}</strong>) was registered successfully but the domain could not be registered. Please enter a desired subdomain slug (the part before <code>.dedyn.io</code>) and try again, or leave it blank for a random one.</p>
|
||
<p>Your deSEC login credentials (for <a target="_blank" href="https://desec.io">desec.io</a>): Email: <strong>{{ desec_email }}</strong>. <details style="display:inline"><summary>Reveal deSEC password</summary><strong>{{ desec_password }}</strong></details>. Please save these in a safe place.</p>
|
||
<form method="POST" action="api/desec/register" class="xhr">
|
||
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
|
||
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
|
||
<input type="text" name="desec_slug" placeholder="my-nextcloud (optional)" pattern="[a-z0-9]([a-z0-9\-]{0,61}[a-z0-9])?" title="Only lowercase letters, digits and hyphens (1–63 characters). No leading or trailing hyphen." />
|
||
<input type="submit" value="Register free domain via deSEC" />
|
||
</form>
|
||
{% else %}
|
||
<p>Please enter your email address. You can also enter a desired subdomain slug (the part before <code>.dedyn.io</code>); leave it blank for a random one.</p>
|
||
<form method="POST" action="api/desec/register" class="xhr" data-reveal-on-error="#desec-password-field" data-reveal-when="already registered at deSEC">
|
||
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
|
||
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
|
||
<input type="email" name="desec_email" placeholder="your@email.com" required />
|
||
<div id="desec-password-field" style="display:none">
|
||
<p>This email address is already registered at deSEC. Enter your deSEC password below to log in with it instead of creating a new account.</p>
|
||
<input type="password" name="desec_password" placeholder="deSEC password" autocomplete="current-password" />
|
||
</div>
|
||
<input type="text" name="desec_slug" placeholder="my-nextcloud (optional)" pattern="[a-z0-9]([a-z0-9\-]{0,61}[a-z0-9])?" title="Only lowercase letters, digits and hyphens (1–63 characters). No leading or trailing hyphen." />
|
||
<input type="submit" value="Register free domain via deSEC" />
|
||
</form>
|
||
<p><strong>Note:</strong> By submitting this form you agree to the <a target="_blank" href="https://desec.io/terms">deSEC terms of service</a>. The registered domain and your deSEC account credentials are stored in the AIO configuration. After registration, set your router's DHCP DNS server to this machine's local IP address so LAN devices resolve the domain locally (see the <a target="_blank" href="https://github.com/nextcloud/all-in-one/tree/main/community-containers/dnsmasq">dnsmasq documentation</a>). Alternatively adjust the hosts files on your clients so that they can reach the server using the local ip-address.</p>
|
||
{% endif %}
|
||
</details>
|