Set Up a Custom Domain
To map your custom domain to the services running on your DigitalOcean Droplet (e.g., backend, auth, app, socket, proxy)
, you’ll need to create five separate A records, each pointing to your Droplet’s public IP address.
Example DNS records:
Type | Name (Host) | Value (Points to) | TTL |
---|---|---|---|
A | backend | YOUR_PUBLIC_IP | 3600 or Auto |
A | auth | YOUR_PUBLIC_IP | 3600 or Auto |
A | app | YOUR_PUBLIC_IP | 3600 or Auto |
A | socket | YOUR_PUBLIC_IP | 3600 or Auto |
A | proxy | YOUR_PUBLIC_IP | 3600 or Auto |
Replace YOUR_PUBLIC_IP with the actual public IP address of your DigitalOcean Droplet.
Each of these subdomains (e.g., backend.yourdomain.com, auth.yourdomain.com, etc.)
will route traffic to the respective services hosted on your server.
Note: DNS changes may take a few minutes to several hours to propagate.