docs: update external resources instruction

This commit is contained in:
Khue Doan
2022-06-04 14:25:55 +07:00
parent f434953d37
commit 5dc905be86
2 changed files with 38 additions and 30 deletions

View File

@ -1,15 +1,21 @@
# DNS setup
Before you can access the home page at <https://home.example.com>, you'll need to update your DNS config.
Because everyone DNS setup are different, DNS automation is not in the scope of the project.
Some options for DNS config (choose one):
- Change the DNS config at your domain registrar (easy to automate)
- Change the DNS config in your router (also works with the [`home.arpa`](https://datatracker.ietf.org/doc/html/rfc8375) domain)
- Use [nip.io](https://nip.io) (suitable for a test environment)
- Change the DNS config in your router
- Change the DNS config at your domain registrar (doesn't work with the [`home.arpa`](https://datatracker.ietf.org/doc/html/rfc8375) domain)
Before continuing to the next section for some examples, run this command to get a list of subdomain and its address:
## At your domain registrar (recommended)
I'm using Cloudflare for DNS, continue to the next section for more information.
## In your router
You can add each subdomain one by one, or use a wildcard `*.example.com` and point it to the IP address of the load balancer.
To acquire a list of subdomains and their addresses, use this command:
```sh
./scripts/get-dns-config
@ -18,11 +24,3 @@ Before continuing to the next section for some examples, run this command to get
## Use nip.io
Preconfigured in the `dev` branch.
## In your router
You can add each subdomain one by one like the previous method, or use a wildcard `*.example.com` and point it to the IP address of the load blancer (from the output of the previous command)
## At your domain registrar
I'm using Cloudflare for DNS, continue to the next section for more information.