{"id":17080568,"url":"https://github.com/kylef/redirector","last_synced_at":"2025-04-12T20:44:36.339Z","repository":{"id":29787696,"uuid":"33331864","full_name":"kylef/redirector","owner":"kylef","description":"Simple web server for HTTP redirecting from one domain to another.","archived":false,"fork":false,"pushed_at":"2021-03-25T21:38:26.000Z","size":5,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T15:01:46.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kylef.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}},"created_at":"2015-04-02T21:06:24.000Z","updated_at":"2021-05-26T06:49:05.000Z","dependencies_parsed_at":"2022-08-03T12:00:48.742Z","dependency_job_id":null,"html_url":"https://github.com/kylef/redirector","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/kylef%2Fredirector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylef%2Fredirector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylef%2Fredirector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylef%2Fredirector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kylef","download_url":"https://codeload.github.com/kylef/redirector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631687,"owners_count":21136556,"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":[],"created_at":"2024-10-14T12:45:50.623Z","updated_at":"2025-04-12T20:44:36.316Z","avatar_url":"https://github.com/kylef.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redirector\n\nSimple web server for HTTP redirecting from one domain to another.\n\n## Usage\n\n### Configuration\n\nConfiguration is stored in `redirector.yaml` as a YAML file.\n\n```yaml\n- host: '*.fuller.li'\n  destination: http://{zones[0]}.kylefuller.co.uk{path}\n- host: '*querykit.org'\n  destination: https://github.com/QueryKit\n```\n\nWhere any sub-domain of fuller.li will redirect to the (sub-domain).kylefuller.co.uk/path\n\n#### Example\n\n| Request | Redirect |\n|---------|----------|\n| `http://mail.fuller.li/login` | `http://mail.kylefuller.co.uk/login` |\n| `http://www.querykit.org/something` | `https://github.com/QueryKit` |\n\n#### Supported Variables\n\n- scheme\n- host\n- path\n- zones (list) - A list of each domain component\n\n### Deploying on Heroku\n\nClick the button below to automatically set up the redirector on your own Heroku account.\n\n[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/kylef/redirector)\n\nOnce you've deployed, you can easily clone the application and alter the configuration to configure your own domains.\n\n```bash\n$ heroku clone -a new-app-name\n$ cat redirector.yaml\n```\n\nRemember to configure your [custom domains](https://devcenter.heroku.com/articles/custom-domains) on Heroku:\n\n```bash\nheroku domains:add *.example.com\n```\n\n### Running the development server\n\n```bash\n$ pip install -r requirements.txt\n$ python redirector.py\n```\n\n## License\n\nredirector is released under the BSD license. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylef%2Fredirector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylef%2Fredirector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylef%2Fredirector/lists"}