{"id":20760394,"url":"https://github.com/vanng822/sdproxy","last_synced_at":"2026-05-26T20:06:08.746Z","repository":{"id":144210767,"uuid":"94833477","full_name":"vanng822/sdproxy","owner":"vanng822","description":"Simple dev reverse proxy","archived":false,"fork":false,"pushed_at":"2024-05-04T14:34:46.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T05:27:34.907Z","etag":null,"topics":["development","golang","proxy","reverse-proxy"],"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/vanng822.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-20T00:47:06.000Z","updated_at":"2024-05-04T14:34:50.000Z","dependencies_parsed_at":"2025-01-18T05:26:05.601Z","dependency_job_id":"317f7c25-2329-4805-a76c-0c67a814f4d7","html_url":"https://github.com/vanng822/sdproxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fsdproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fsdproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fsdproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fsdproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanng822","download_url":"https://codeload.github.com/vanng822/sdproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243076653,"owners_count":20232436,"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":["development","golang","proxy","reverse-proxy"],"created_at":"2024-11-17T10:13:26.310Z","updated_at":"2026-05-26T20:06:08.732Z","avatar_url":"https://github.com/vanng822.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdproxy\n\nSimple dev reverse proxy - mimic nginx in dev environment\n\n# Usage\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/vanng822/sdproxy\"\n)\n\nfunc main() {\n\tvar hosts []*Host\n\n    var locations []*Location\n\n    web := sdproxy.NewLocation(\"/\", sdproxy.NewUpstream(\"127.0.0.1:8090\", \"127.0.0.1:8091\"))\n    locations = append(locations, web)\n\tapi := sdproxy.NewLocation(\"/api\", sdproxy.NewUpstream(\"127.0.0.1:8092\", \"127.0.0.1:8093\"))\n    locations = append(locations, api)\n\n    hosts = append(hosts, \u0026Host{\"\", locations})\n\n\tserver := sdproxy.NewServer(\"127.0.0.1:8181\", hosts...)\n\tlog.Fatal(server.ListenAndServe())\n}\n```\n\nOR\n\n```bash\n\u003e go install github.com/vanng822/sdproxy/cmd/sdproxy\n\u003e sdproxy -c path_to_config.json\n```\n\nConfiguration example\n\n```json\n{\n    \"addr\": \"127.0.0.1:8080\",\n    \"hosts\": [{\n        \"hostname\": \"\",\n        \"locations\": [{\n        \"path\": \"/\",\n        \"servers\": [\n            \"127.0.0.1:8090\",\n            \"127.0.0.1:8094\"\n        ]\n        }, {\n            \"path\": \"/api\",\n            \"servers\": [\n                \"127.0.0.1:8091\",\n                \"127.0.0.1:8092\"\n            ]\n        }]\n    }]\n    \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fsdproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanng822%2Fsdproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fsdproxy/lists"}