DocsGuidesCustom Domains

Custom Domains

Use your own domain with ServerMe tunnels.

Setup

1. Add your domain

Go to Domains in the dashboard, or via API:

bash
curl -X POST https://api.serverme.site/api/v1/domains \
  -H "X-API-Key: sm_live_..." \
  -H "Content-Type: application/json" \
  -d '{"domain": "api.example.com"}'

2. Add a DNS record

Add a CNAME record in your DNS provider:

TypeNameTarget
CNAMEapi.example.comtunnel.serverme.site

3. Verify

Click "Verify" in the dashboard, or:

bash
curl -X POST https://api.serverme.site/api/v1/domains/:id/verify \
  -H "X-API-Key: sm_live_..."

4. Use it

bash
serverme http 3000 --hostname api.example.com

TLS certificates

ServerMe automatically provisions Let's Encrypt certificates for verified custom domains. The first request to a new domain takes ~5 seconds (certificate provisioning), then instant after that.