Subdomains and Custom Domains

From Nest Guides

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 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. For example, if your username is orpheus, you would create a CNAME record with the value of orpheus.hackclub.app .

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

Once this is done and the DNS has propagated, you can link your domain to your user account with the following command. For example, orpheus may run nest domain add orpheus.com.

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

nest domain remove <name>