{"id":21083647,"url":"https://github.com/initdc/subdomain-redirect","last_synced_at":"2025-12-29T21:57:35.040Z","repository":{"id":110380353,"uuid":"361473926","full_name":"initdc/subdomain-redirect","owner":"initdc","description":"Redirect service by access subdomain, powered by Cloudflare Workers and KV DB","archived":false,"fork":false,"pushed_at":"2021-09-27T06:52:11.000Z","size":250,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T23:48:31.896Z","etag":null,"topics":["clouflare","database","kv","redirect","subdomain","workers"],"latest_commit_sha":null,"homepage":"https://moz.one","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/initdc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-25T16:02:56.000Z","updated_at":"2024-06-17T21:39:01.000Z","dependencies_parsed_at":"2023-04-13T03:04:51.378Z","dependency_job_id":null,"html_url":"https://github.com/initdc/subdomain-redirect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fsubdomain-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fsubdomain-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fsubdomain-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fsubdomain-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/initdc","download_url":"https://codeload.github.com/initdc/subdomain-redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243526952,"owners_count":20305115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clouflare","database","kv","redirect","subdomain","workers"],"created_at":"2024-11-19T20:19:16.649Z","updated_at":"2025-12-29T21:57:34.988Z","avatar_url":"https://github.com/initdc.png","language":"JavaScript","readme":"# subdomain-redirect\n\n\u003e Redirect service by access subdomain, powered by Cloudflare Workers and KV DB\n\n## Notice\n\n- Only 2nd level subdomains are supported. \n \u003e Because Cloudflare’s free SSL cert covered your domain and any 2nd level subdomain\n\n## Deploy\n\n1. create a worker\n\n![gen1](image/gen1.jpg)\n\n2. paste the code from ```index.js```\n\n![gen2](image/gen2.jpg)\n\n3. set KV database binding\n\n![gen3](image/gen3.jpg)\n\n4. create records in KV database\n\n![gen4](image/gen4.jpg)\n\n5. set route for ```*.example.com```\n\n![gen5](image/gen5.jpg)\n\n6. create DNS record for ```*.example.com``` \n\n![gen6](image/gen6.jpg)\n\n\n## Reference\n\n[Configuring SSL for multiple subdomains](https://community.cloudflare.com/t/configuring-ssl-for-multiple-subdomains/11771)\n\n## Powered by\n\n[Cloudflare Workers](https://workers.dev/)\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fsubdomain-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitdc%2Fsubdomain-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fsubdomain-redirect/lists"}