{"id":25267473,"url":"https://github.com/banyango/alligator","last_synced_at":"2025-04-06T03:27:18.596Z","repository":{"id":146524671,"uuid":"192658702","full_name":"Banyango/alligator","owner":"Banyango","description":"A reverse proxy in golang","archived":false,"fork":false,"pushed_at":"2019-06-19T14:34:24.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-24T03:03:50.851Z","etag":null,"topics":["golang","reverse-proxy"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Banyango.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2019-06-19T04:31:57.000Z","updated_at":"2024-06-19T09:10:17.964Z","dependencies_parsed_at":"2023-04-22T11:03:13.602Z","dependency_job_id":null,"html_url":"https://github.com/Banyango/alligator","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyango%2Falligator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyango%2Falligator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyango%2Falligator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyango%2Falligator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Banyango","download_url":"https://codeload.github.com/Banyango/alligator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430393,"owners_count":20937859,"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":["golang","reverse-proxy"],"created_at":"2025-02-12T09:38:00.965Z","updated_at":"2025-04-06T03:27:18.580Z","avatar_url":"https://github.com/Banyango.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alligator\n\nAlligator is a configurable reverse proxy in golang.\n\n- Toml config files\n- In memory Caching middleware\n\nalligator.toml.sample contains an example of how to set up the proxies\n```toml\n[[Proxy]]\nPath = \"/whyhellothere\"\nHost = \"localhost:5000\"\nScheme= \"http\"\n\t[[Proxy.Rules]]\n\t\tType = \"host\"\n\t\tPattern = [\"[localhost:3000]\"]\n\t[[Proxy.Rules]]\n\t\tType = \"path\"\n\t\tPattern = [\".hello/.\"]\n```\nThis example redirects any host that matches the regex localhost:3000 and any path that contains hello/ to localhost:5000/whyhellothere\n\nThings on my todo\n- The proxy rules are effectively all AND which might be restrictive. There would be some rework required to handle OR, XOR, etc\n- The https schemes are not fully tested, so I can't guarantee that it works.\n- Using an in-memory cache that I did means you can't share the cache if you horz scale the proxy server.  \n- In general there could be a lot more testing but I only did this in a day. \n- There are only 3 types of matchers there's probably more to match on.\n- Didn't have time to setup CircleCI\n\n###### To build the docker image\nmake v=1 build-docker\n\n###### To run the docker image\n`docker run -v $(pwd)/.dist/alligator.toml:/alligator.toml alligator:1`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyango%2Falligator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanyango%2Falligator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyango%2Falligator/lists"}