{"id":19910039,"url":"https://github.com/aitoroses/go-proxy","last_synced_at":"2026-05-13T04:35:07.179Z","repository":{"id":35682099,"uuid":"39958057","full_name":"aitoroses/go-proxy","owner":"aitoroses","description":"A easy configurable HTTP request proxy","archived":false,"fork":false,"pushed_at":"2015-07-30T16:54:17.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T22:31:00.875Z","etag":null,"topics":[],"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/aitoroses.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}},"created_at":"2015-07-30T15:33:22.000Z","updated_at":"2017-06-27T08:40:01.000Z","dependencies_parsed_at":"2022-09-04T03:21:12.738Z","dependency_job_id":null,"html_url":"https://github.com/aitoroses/go-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2Fgo-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2Fgo-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2Fgo-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2Fgo-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aitoroses","download_url":"https://codeload.github.com/aitoroses/go-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241337485,"owners_count":19946423,"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":[],"created_at":"2024-11-12T21:17:21.675Z","updated_at":"2026-05-13T04:35:07.144Z","avatar_url":"https://github.com/aitoroses.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Proxy\n\nIt offers an interface for configuring an HTTP server that mounts domains as they were it's middleware.\n\nThis helps for example when we are developing an application that has it's api on a different domain and we don't want to enable CORS by default.\n\n# Configuration\n\nWe need to create a ```servers.json``` file. (by default)\n\nor we can specify the file with ```--config my_servers.json```\n\n```json\n{\n  \"port\": 8080,\n  \"servers\": [\n    {\n      \"mount\": \"/app\",\n      \"host\": \"my-app\",\n      \"port\": 3000\n    },\n    {\n      \"mount\": \"/*\",\n      \"host\": \"my-api\",\n      \"port\": 7003\n    }\n  ]\n}\n```\n\n```go-proxy --config server_config.json``` will start a server on port 8080 displaying the following information\n```\nProxy: /app  -\u003e  http://localhost:3000\nProxy: /google  -\u003e  http://www.google.com:80\nProxy: /*  -\u003e  http://soa-server:7003\n```\n\nIt means that any request sent over /app will be redirected to localhost:3000 for example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faitoroses%2Fgo-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faitoroses%2Fgo-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faitoroses%2Fgo-proxy/lists"}