{"id":20568720,"url":"https://github.com/agungdwiprasetyo/reverse-proxy","last_synced_at":"2026-04-21T06:05:45.363Z","repository":{"id":92214089,"uuid":"175121870","full_name":"agungdwiprasetyo/reverse-proxy","owner":"agungdwiprasetyo","description":"Repository for manage all my API's","archived":false,"fork":false,"pushed_at":"2021-05-19T14:46:49.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T20:55:29.335Z","etag":null,"topics":["apigateway","golang","kubernetes","reverse-proxy","routing-engine"],"latest_commit_sha":null,"homepage":"https://api.agungdp.dev","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/agungdwiprasetyo.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":"2019-03-12T02:43:41.000Z","updated_at":"2024-04-23T04:03:25.000Z","dependencies_parsed_at":"2023-06-08T00:15:34.335Z","dependency_job_id":null,"html_url":"https://github.com/agungdwiprasetyo/reverse-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/agungdwiprasetyo%2Freverse-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agungdwiprasetyo%2Freverse-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agungdwiprasetyo%2Freverse-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agungdwiprasetyo%2Freverse-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agungdwiprasetyo","download_url":"https://codeload.github.com/agungdwiprasetyo/reverse-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242180998,"owners_count":20085288,"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":["apigateway","golang","kubernetes","reverse-proxy","routing-engine"],"created_at":"2024-11-16T04:54:25.841Z","updated_at":"2026-04-21T06:05:40.345Z","avatar_url":"https://github.com/agungdwiprasetyo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pengendali API (Reverse proxy for API Gateway)\n\n[![Build Status](https://travis-ci.org/agungdwiprasetyo/reverse-proxy.svg?branch=master)](https://travis-ci.org/agungdwiprasetyo/reverse-proxy)\n[![codecov](https://codecov.io/gh/agungdwiprasetyo/reverse-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/agungdwiprasetyo/reverse-proxy)\n[![golang](https://img.shields.io/badge/GoLang-v1.12-green.svg?logo=google)](https://golang.org/doc/devel/release.html#go1.12)\n\n[![Coverage Graph](https://codecov.io/gh/agungdwiprasetyo/reverse-proxy/branch/master/graphs/commits.svg)](https://codecov.io/gh/agungdwiprasetyo/reverse-proxy)\n\nA http tool for reverse proxy like nginx **(NO Framework, just write in PURE Go)**\n\n### Use\n* Install Golang\n```sh\n$ brew install golang\n```\n\n* Build app\n```sh\n$ make build\n```\n\n* Copy `config.example.json` to `config.json`\n```sh\n$ cp config.example.json config.json\n```\n\n* Add your services in `config.json`\n```json\n{\n    \"services\": [\n        {\n            \"root\": \"[root for service, example: /myapp]\",\n            \"host\": \"[host service, example: http://localhost:8000]\"\n        }\n    ]\n}\n```\n\n* Set app port\n```json\n{\n    \"gateway_port\": 3000,\n}\n```\n\n* Run binary\n```sh\n$ ./bin\n[GATEWAY] :3000/myapp/ |===\u003e http://localhost:8000\nServer running on port :3000\n```\n\nIn nginx, configuration for adding proxy like this:\n```\nlocation /myapp/ {\n    proxy_pass http://127.0.0.1:8000;\n    proxy_set_header Host $host;\n    proxy_set_header X-Real-IP $remote_addr;\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    proxy_redirect    off;\n}\n```\n\nIn this app, for adding a proxy just add in `config.json`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagungdwiprasetyo%2Freverse-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagungdwiprasetyo%2Freverse-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagungdwiprasetyo%2Freverse-proxy/lists"}