Wildcard mode for multi-tenant SaaS. Explicit mode for microservice routing. Wildcard SSL certificates included.
You're building a SaaS platform where each customer gets their own subdomain — acme.myapp.com, beta-corp.myapp.com. In production, it works because DNS and your reverse proxy handle the routing. In development, you can't even resolve acme.myapp.test without editing the hosts file every time you add a tenant.
Donk has two subdomain modes. Wildcard mode resolves *.myapp.test to your server — any subdomain, automatically. Your app reads the Host header and routes to the right tenant. Explicit mode maps specific subdomains to specific servers — api.myapp.test to the backend, admin.myapp.test to the admin panel, ws.myapp.test to the WebSocket gateway.
*.myapp.test resolves automatically. Any subdomain works.Video: 30–40 seconds. Enabling wildcard mode, opening two different tenant subdomains, seeing different tenant data.