Skip to content

Redirect service by access subdomain, powered by Cloudflare Workers and KV DB

License

Notifications You must be signed in to change notification settings

initdc/subdomain-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subdomain-redirect

Redirect service by access subdomain, powered by Cloudflare Workers and KV DB

Notice

  • Only 2nd level subdomains are supported.

Because Cloudflare’s free SSL cert covered your domain and any 2nd level subdomain

Deploy

  1. create a worker

gen1

  1. paste the code from index.js

gen2

  1. set KV database binding

gen3

  1. create records in KV database

gen4

  1. set route for *.example.com

gen5

  1. create DNS record for *.example.com

gen6

Reference

Configuring SSL for multiple subdomains

Powered by

Cloudflare Workers

License

MIT

About

Redirect service by access subdomain, powered by Cloudflare Workers and KV DB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published