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
Samuel (talk | contribs)
→‎Subdomains: Add section about removing subdomains
Bddylol (talk | contribs)
Edit custom domains section to include steps
Line 10: Line 10:


== Custom Domains ==
== Custom Domains ==
Custom domains are a feature that we have not yet implemented - it's coming soon, though!
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)
 
Follow the easy steps listed below:
 
# Login to your DNS provider, select DNS records
# 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.
# Head over to your nest terminal, then type the following command:<syntaxhighlight lang="bash">
nest domain add <domain>
</syntaxhighlight>where  <code>domain</code> is your custom domain. 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
nest domain remove <name>

Revision as of 20:09, 12 April 2024

While 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:

nest subdomain add <name>

where name is the name of the subdomain you want to add. If your username is orpheus, and you'd like to configure drawing.orpheus.hackclub.app, then you would run nest subdomain add drawing. 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 subdomain from the configuration, you can also run

nest subdomain remove <name>

Custom Domains

Custom domains are a feature where you can visually personalize your nest. For example, instead of accessing your nest at https://coolguy24.hackclub.app you can access it at https://coolguy24.net! (only if you own that domain)

Follow the easy steps listed below:

  1. Login to your DNS provider, select DNS records
  2. Add the DNS record with the CNAME to be <username>.hackclub.app. In my case, I'm using Cloudflare so i would put the name to @ and the value to bddylol.hackclub.app)
  3. If you are using Cloudflare, make sure to uncheck "Proxy status" (orange cloud) so they don't reverse-proxy it.
  4. Head over to your nest terminal, then type the following command:
    nest domain add <domain>
    where domain is your custom domain. 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

nest domain remove <name>