Adding a domain via the API
Serve your app on a custom domain using Servr's API in three easy step:
- Instruct your customer or the domain owner to create a DNS record for it pointing to our global endpoint.
You can choose the method you prefer: An A record pointing to our global endpoint'd IP Address or a CNAME record pointing to our global endpoint's domain name.
YOUR-DOMAIN.COM A 18.104.22.168
SUB.YOUR-DOMAIN.COM CNAME atlantis-01.dns.servr.app
Perform a Post Request to our API Endpoint providing the required information to serve a new domain. The domain in question, its target and wether or not the app is served on behind a load balancer.
If DNS changes from step 1 are already propagated, the new domain will be authorized almost instantly. After step 2, perform frequent get requests to our API endpoint to monitor when the domain is authorized and actively routing traffic to your target over HTTPS.