Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Subdomains and Custom Domains: Difference between revisions

From Nest Guides
Dillon (talk | contribs)
m Update grammar and slightly reword
Haroon (talk | contribs)
Re-wrote the custom domain section
Line 10: Line 10:


== Custom Domains ==
== Custom Domains ==
Custom domains are a feature where you can visually personalize your nest. For example, instead of accessing your nest at <nowiki>https://coolguy24.hackclub.app</nowiki> you can access it at <nowiki>https://coolguy24.net</nowiki>! (only if you own that domain)
As well as having your <code>https://<username>.hackclub.app</code> subdomain, you can link a custom domain to your user account.


Follow the easy steps listed below:
To configure any custom domains for your user account, add a CNAME record to your domain leading to <code><username>.hackclub.app</code>. So for example, if your username is <code>orpheus</code>, you would set the CNAME record to <code>orpheus.hackclub.app</code>.


# Login to your DNS provider, select DNS records
If you are using Cloudflare or a similar DNS provider that reverse-proxies requests, make sure to uncheck "Proxy status" (known as Orange cloud on CF).
# Add the DNS record with the CNAME to be <code><username>.hackclub.app</code>. In my case, I'm using Cloudflare so i would put the name to <code>@</code> and the value to <code>bddylol.hackclub.app</code>)
 
# If you are using Cloudflare, make sure to uncheck "Proxy status" (orange cloud) so they don't reverse-proxy it.
Once this is done and the DNS has propagated, you can link your domain to your user account with the following command:
# Head over to your nest terminal, then type the following command where  <code>domain</code> is your custom domain.<syntaxhighlight lang="bash">
  nest domain add <domain>
nest domain add <domain>
Just like with normal subdomains, the Nest CLI will automatically configure the domain in the system and add a block to your Caddyfile to get you started. See [[Caddy]] for more information about the Caddyfile.
</syntaxhighlight>Like subdomains, the Nest CLI will automatically configure it in the system and add a block to your Caddyfile to get you started. See [[Caddy]] for more information about the Caddyfile.
 
If you'd like to remove a domain from the configuration, you can also run
If you'd like to remove a domain from the configuration, you can also run:
  nest domain remove <name>
  nest domain remove <name>

Revision as of 20:42, 12 April 2024

Whilst a subdomain of https://hackclub.app is automatically configured for you when you sign up for Nest, you'll need to use the Nest CLI to configure new subdomains under your user subdomain (https://<username>.hackclub.app).

Subdomains

To configure any subdomains of your user subdomain of hackclub.app, you can simply run the following command where name is the name of the subdomain you want to add. For example, if your username is orpheus, and you'd like to configure drawing.orpheus.hackclub.app, then you would run nest subdomain add drawing.

nest subdomain add <name>

The Nest CLI will automatically configure the subdomain in the system and add a block to your Caddyfile to get you started. See Caddy for more information about the Caddyfile.

If you'd like to remove a subdomain from the configuration, you can also run

nest subdomain remove <name>

Custom Domains

As well as having your https://<username>.hackclub.app subdomain, you can link a custom domain to your user account.

To configure any custom domains for your user account, add a CNAME record to your domain leading to <username>.hackclub.app. So for example, if your username is orpheus, you would set the CNAME record to orpheus.hackclub.app.

If you are using Cloudflare or a similar DNS provider that reverse-proxies requests, make sure to uncheck "Proxy status" (known as Orange cloud on CF).

Once this is done and the DNS has propagated, you can link your domain to your user account with the following command:

 nest domain add <domain>

Just like with normal subdomains, the Nest CLI will automatically configure the domain in the system and add a block to your Caddyfile to get you started. See Caddy for more information about the Caddyfile.

If you'd like to remove a domain from the configuration, you can also run:

nest domain remove <name>