Magic Domains
Magic Domains are a specialized domain type tailored to seamlessly route traffic to dynamic forward proxy Envoy instances. A dynamic forward proxy is a proxy that can be configured to route traffic based on the domain name of the request. There is no need to preconfigure the upstream services prior to sending traffic (ie. no Envoy config). They are the quickest way to get started on the Apoxy platform if you already have a routable domain.
TLDR
apoxy domains create --magic --random
The Domain Template
There are 2 parts to a domain template:
- The magic key - A unique identifier returned by the Apoxy API.
- The domain - The domain name to route traffic to.
{key}.{domain}.apoxy.io
For example, if you have a domain named example.com
and your magic key is ks3fa23
, then you could send traffic to ks3fa23.example.com.apoxy.io
.
Use Cases
- Monitoring - Update SDK base URLs for quick and easy API call monitoring.
- API Request Logs - Give your API consumers logs for auditing and debugging.
Next Steps
- Pair magic domains with Tunnels to expose your development environment on a free subdomain.
- Add custom logging, security, and more with Extensions.