{"id":16161052,"url":"https://github.com/abdennour/go-http-proxy","last_synced_at":"2025-04-07T02:46:57.721Z","repository":{"id":73940034,"uuid":"389532744","full_name":"abdennour/go-http-proxy","owner":"abdennour","description":"a squid like HTTP Proxy , but 6Mi and faster","archived":false,"fork":false,"pushed_at":"2021-12-06T21:21:21.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T07:47:24.488Z","etag":null,"topics":["devops","offline-first"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/abdennour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-07-26T06:35:25.000Z","updated_at":"2023-05-09T14:28:49.000Z","dependencies_parsed_at":"2023-09-21T16:23:16.415Z","dependency_job_id":null,"html_url":"https://github.com/abdennour/go-http-proxy","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"93607cb4088b20f308298b4391a28b90f7058483"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdennour%2Fgo-http-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdennour%2Fgo-http-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdennour%2Fgo-http-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdennour%2Fgo-http-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdennour","download_url":"https://codeload.github.com/abdennour/go-http-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584060,"owners_count":20962071,"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":["devops","offline-first"],"created_at":"2024-10-10T02:07:04.679Z","updated_at":"2025-04-07T02:46:57.705Z","avatar_url":"https://github.com/abdennour.png","language":"Shell","readme":"# Go Http Proxy\nThis is a squid-like HTTP proxy based on [github@smartystreets/cproxy](https://github.com/smartystreets/cproxy).\nThis git repo is to use the Cproxy library and web app from it as binary artifact can be reused every, as such using any http proxy (Squid, .. so on)\n\n# Prerequisites\n- docker (v20 or above)\n- docker-compose ( v1.29.x or above)\n\n# How to use it\n\n**Download it** check release page https://github.com/abdennour/go-http-proxy/releases/tag/v1.0.0\n\n**Install it in Linux**\n\n```sh\ncurl -LO https://github.com/abdennour/go-http-proxy/releases/download/v1.0.0/go-http-proxy-linux-amd64 \u0026\u0026 \\\n chmod +x go-http-proxy-* \u0026\u0026 sudo mv go-http-proxy-* /usr/local/bin/go-http-proxy\n```\n\n**Install it in MacOS**\n\n```sh\ncurl -LO https://github.com/abdennour/go-http-proxy/releases/download/v1.0.0/go-http-proxy-darwin-amd64 \u0026\u0026 \\\n chmod +x go-http-proxy-* \u0026\u0026 sudo mv go-http-proxy-* /usr/local/bin/go-http-proxy\n```\n\n**Install it in Windows**\n\nDownload this executable file: https://github.com/abdennour/go-http-proxy/releases/download/v1.0.0/go-http-proxy-windows-amd64.exe\n\n\n**Run it**\n\n```sh\ngo-http-proxy\n# run it in background by adding \"\u0026\" at the end of the command\n```\n\nAnd now the the proxy should be listening on localhost:8080\n\n**Run it with custom port**\n\n```sh\n# change default port 8080 to another port (9090)\ngo-http-proxy --port 9090\n```\n\n**Configure your HTTP proxy clients**\n\n- Example: Curl behind HTTP proxy -\u003e `curl -x localhost:8080 https://something.com`\n\n\nAnd now the the proxy should be listening on localhost:9090\n\n\n# Contributing\n\n- Run the app `go run .`\n- Validate it `curl -x localhost:8080 https://google.com` or using env var `HTTP_PROXY=http://localhost:8080` for other clients\n\nor Run the app with custom port:\n\u003cdetails\u003e\n- Run the app with custom port `go run . --port=9191`\n- Validate it `curl -x localhost:9191 https://google.com` or using env var `HTTP_PROXY=http://localhost:9191` for other clients\n\u003c/details\u003e\n\n\nor Run it inside container:\n\u003cdetails\u003e\n- up it `docker-compose up -d`\n- then validate `curl -x $(docker-compose port app 8080) https://google.com`\n- clean up it `docker-compose down`\n\u003c/details\u003e\n\n# License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdennour%2Fgo-http-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdennour%2Fgo-http-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdennour%2Fgo-http-proxy/lists"}