Redirect service by access subdomain, powered by Cloudflare Workers and KV DB
- Only 2nd level subdomains are supported.
Because Cloudflare’s free SSL cert covered your domain and any 2nd level subdomain
- create a worker
- paste the code from
index.js
- set KV database binding
- create records in KV database
- set route for
*.example.com
- create DNS record for
*.example.com
Configuring SSL for multiple subdomains
MIT