{"id":20002551,"url":"https://github.com/abhishekkr/weeproxy","last_synced_at":"2025-05-04T15:34:24.714Z","repository":{"id":64306607,"uuid":"168817311","full_name":"abhishekkr/weeproxy","owner":"abhishekkr","description":"http reverse proxy for personal use","archived":false,"fork":false,"pushed_at":"2019-03-13T19:49:42.000Z","size":16,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T16:52:19.700Z","etag":null,"topics":["go","golang","http","load-balancer","proxy","proxy-server"],"latest_commit_sha":null,"homepage":"","language":"Go","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/abhishekkr.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":"2019-02-02T09:49:10.000Z","updated_at":"2023-09-28T10:58:03.000Z","dependencies_parsed_at":"2023-01-15T10:45:22.124Z","dependency_job_id":null,"html_url":"https://github.com/abhishekkr/weeproxy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekkr%2Fweeproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekkr%2Fweeproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekkr%2Fweeproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishekkr%2Fweeproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhishekkr","download_url":"https://codeload.github.com/abhishekkr/weeproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224395300,"owners_count":17304037,"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":["go","golang","http","load-balancer","proxy","proxy-server"],"created_at":"2024-11-13T05:22:10.208Z","updated_at":"2024-11-13T05:22:10.858Z","avatar_url":"https://github.com/abhishekkr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## WeeProxy\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/abhishekkr/weeproxy)](https://goreportcard.com/report/github.com/abhishekkr/weeproxy)\n\nWeeProxy is a wee bit http proxy to access http services mapped over URL path.\n\n* HTTP Proxy based on URL path mapped to Backends\n\n* round-robin load-balancing\n\n* graceful stop/restart\n\n* prometheus performance metrics at `/metrics`\n\n* configurable header customization\n\n* rate-limiting (same config for all backends)\n\n* circuit breaker (same config for all backends)\n\n\n#### Quikstart\n\n* start server\n\n```\ndep ensure\n\ngo run weeproxy.go\n```\n\n* can also be used by downloaded pre-compiled binary from [latest release](https://github.com/abhishekkr/weeproxy/releases/latest), remember to have [sample config](./sample-config.json) in same dir or set required env var\n\n* check http\n\n```\ncurl localhost:8080/nothing\n\ncurl localhost:8080/google\n```\n\n#### Config\n\n* config to be used can be changed by providing path to `env` var `WEEPROXY_CONFIG`\n\n* proxies based on URL Path maps provided as configuration like, [sample config](./sample-config.json)\n\n```\n{\n  \"server\": {\n    \"listen-at\": \":8080\"\n  },\n  \"url-proxy\": {\n    \"/google\": \"http://www.google.com http://www.google.in\",\n   ....more\n  },\n  \"custom-headers\": {\n    \"X-Proxy-By\": \"WeeProxy\"        // custom response headers for each response\n  },\n  \"sanity\": {\n    \"max-errors-per-sec\": \"10\",     // per backend max errors allowed before ban\n    \"max-request-per-sec\": \"7000\"   // per backend max requests allowed before ban\n   }\n}\n```\n\n\u003e in sample config above, when multiple backends need be load-balanced they are separated by a space\n\u003e\n\u003e if any other character gets used as separator, env `WEEPROXY_LB_SEPARATOR` need be set with same\n\n* port to listen at can be modified updating `listen-at` field in above config\n\n---\n\n#### ToDo\n\n* better no-backend handling\n\n* runtime authenticated config updates over admin api\n\n* rate-limiting (per backend config)\n\n* circuit breaker (per backend config)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishekkr%2Fweeproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhishekkr%2Fweeproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishekkr%2Fweeproxy/lists"}