{"id":23398807,"url":"https://github.com/mbround18/redirect","last_synced_at":"2025-04-11T17:23:15.270Z","repository":{"id":39717714,"uuid":"412159342","full_name":"mbround18/redirect","owner":"mbround18","description":"Simple redirection tool! Ready to use, docker capable, Kubernetes friendly, any Linux based env ready!","archived":false,"fork":false,"pushed_at":"2025-04-03T22:57:06.000Z","size":8732,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-03T23:29:25.290Z","etag":null,"topics":["docker","docker-image","easy-to-use","kubernetes","redirect","simple"],"latest_commit_sha":null,"homepage":"https://registry.hub.docker.com/repository/docker/mbround18/redirect","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbround18.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":["mbround18"],"patreon":"mbround18","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/MichaelBruno"]}},"created_at":"2021-09-30T17:26:38.000Z","updated_at":"2024-09-30T18:17:59.000Z","dependencies_parsed_at":"2023-12-11T23:03:41.895Z","dependency_job_id":"c5d670b2-4e24-4171-a616-2c7a22c4f427","html_url":"https://github.com/mbround18/redirect","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fredirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fredirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fredirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fredirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbround18","download_url":"https://codeload.github.com/mbround18/redirect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248448152,"owners_count":21105249,"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":["docker","docker-image","easy-to-use","kubernetes","redirect","simple"],"created_at":"2024-12-22T09:49:31.002Z","updated_at":"2025-04-11T17:23:15.245Z","avatar_url":"https://github.com/mbround18.png","language":"Rust","funding_links":["https://github.com/sponsors/mbround18","https://patreon.com/mbround18","https://paypal.me/MichaelBruno"],"categories":[],"sub_categories":[],"readme":"# Redirect\n\nExtremely lightweight redirecting agent that uses less than 5MB ram to run redirections. For an example visit [links.boop.ninja/github](https://links.boop.ninja/github)\n\n## Usage CLI\n\n1. Set ENV Variable `REDIRECTS`\n   1. Examples:\n      ```shell\n      REDIRECTS=\"google\u003ehttps://google.com|discord\u003ehttps://discord.gg/d5N7JwzPgt\" \n       ```\n   \u003e NOTE! both `\u003e` and `|` are not URL safe, these are used to designate how the app breaks the variable up. \n   \u003e You can include newlines in the variable to make it easier to read. If your url uses `\u003e` or `|` please url encode it!\n\n2.  Set ENV variable `DEFAULT_ENDPOINT` to point to the url you which to direct any other traffic towards. \n3. Launch the redirect agent. \n\n## Usage Docker\n\n```sh\ndocker run \\\n   -p 8000:8000 \\\n   -e DEFAULT_ENDPOINT=\"https://github.com/mbround18\" \\\n   -e REDIRECTS=\"google\u003ehttps://google.com|discord\u003ehttps://discord.gg/d5N7JwzPgt\" \\\n   mbround18/redirect:latest\n```\n\n## Usage Docker Compose\n\n```yaml\nversion: \"3.9\"  # optional since v1.27.0\nservices:\n  web:\n    build: .\n    image: mbround18/redirect:latest\n    environment:\n      - 'DEFAULT_ENDPOINT=\"https://github.com/mbround18\"'\n      - 'REDIRECTS=\"google\u003ehttps://google.com|discord\u003ehttps://discord.gg/d5N7JwzPgt\"'\n    ports:\n      - \"8000:8000\"\n```\n\n## Statistics\n\nWith about 20 routes preloaded in the environment variable, the web services consumes about 3-4 MB\n\n![image](https://user-images.githubusercontent.com/12646562/137840366-feff4c69-7f01-4903-abbd-4c014ff4a9d1.png)\n\nAdditionally, it does not even register on the cpu scale which is in millicores (the metrics tool is [Lens](https://k8slens.dev/) :P all other apps work register on the cluster ;) ) \n\n![image](https://user-images.githubusercontent.com/12646562/137840435-e17cdd65-b0fc-48fd-95c0-3e705d6b2ecf.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbround18%2Fredirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbround18%2Fredirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbround18%2Fredirect/lists"}