{"id":36858986,"url":"https://github.com/nikhilbhatt/go-proxy","last_synced_at":"2026-01-12T14:48:26.399Z","repository":{"id":262081762,"uuid":"885828482","full_name":"nikhilbhatt/go-proxy","owner":"nikhilbhatt","description":"Go Proxy","archived":false,"fork":false,"pushed_at":"2024-11-23T11:19:59.000Z","size":150,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-23T12:24:44.968Z","etag":null,"topics":["development","docker","go","localhost","proxy"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/repository/docker/nickbhatt/go-proxy-server","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/nikhilbhatt.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":"2024-11-09T14:01:23.000Z","updated_at":"2024-11-23T11:20:04.000Z","dependencies_parsed_at":"2024-11-10T12:32:39.165Z","dependency_job_id":"71ebe7e2-4f59-4fa0-9477-a1e5428bcc6e","html_url":"https://github.com/nikhilbhatt/go-proxy","commit_stats":null,"previous_names":["nikhilbhatt/go-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikhilbhatt/go-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilbhatt%2Fgo-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilbhatt%2Fgo-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilbhatt%2Fgo-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilbhatt%2Fgo-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikhilbhatt","download_url":"https://codeload.github.com/nikhilbhatt/go-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilbhatt%2Fgo-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["development","docker","go","localhost","proxy"],"created_at":"2026-01-12T14:48:25.923Z","updated_at":"2026-01-12T14:48:26.387Z","avatar_url":"https://github.com/nikhilbhatt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Go Reverse Proxy in Docker for Local Development\n\nThis project is a Go-based reverse proxy that allows local development with custom subdomains pointing to specific ports on your local machine. Using Docker, this proxy server dynamically routes requests to different ports based on subdomain configurations.\n\n#### Steps to use:\n1. Pull the image. `docker pull nickbhatt/go-proxy-server:1.0.0`\n2. Create custom routes file. \n```json\n# routes.json\n{\n  \"routes\": {\n    \"site1.localhost\": \"3000\",\n    \"site2.localhost\": \"3001\"\n  }\n}\n``` \n3. Run docker container. `docker run -p 80:80 -v $(pwd)/routes.json:/app/routes.json nickbhatt/go-proxy-server:1.0.0`\n\n#### Working\n![Image](images/working.png)\n\n#### Local DNS Resolution\nFor local development, the localhost domain is mapped to 127.0.0.1, directing traffic to your machine. The proxy server in Docker listens on port 80 of 127.0.0.1 and routes based on subdomains defined in routes.json. Make sure the site1.localhost and site2.localhost subdomains are properly configured (e.g., using host.docker.internal to access services on the host if needed).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhilbhatt%2Fgo-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikhilbhatt%2Fgo-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhilbhatt%2Fgo-proxy/lists"}