{"id":15136367,"url":"https://github.com/itsmunim/local-proxy-hub","last_synced_at":"2026-04-01T18:39:03.239Z","repository":{"id":94202042,"uuid":"146933278","full_name":"itsmunim/local-proxy-hub","owner":"itsmunim","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-01T19:00:31.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T10:10:25.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/itsmunim.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}},"created_at":"2018-08-31T19:13:21.000Z","updated_at":"2019-07-02T16:11:05.000Z","dependencies_parsed_at":"2023-07-27T04:45:42.823Z","dependency_job_id":null,"html_url":"https://github.com/itsmunim/local-proxy-hub","commit_stats":null,"previous_names":["itsmunim/local-proxy-hub","dibosh/local-proxy-hub"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/itsmunim/local-proxy-hub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Flocal-proxy-hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Flocal-proxy-hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Flocal-proxy-hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Flocal-proxy-hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsmunim","download_url":"https://codeload.github.com/itsmunim/local-proxy-hub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Flocal-proxy-hub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-09-26T06:21:20.975Z","updated_at":"2026-01-20T16:03:19.063Z","avatar_url":"https://github.com/itsmunim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![all downloads](https://img.shields.io/npm/dt/local-proxy-hub.svg)]()\n\n\n# Local Proxy Hub\n\n### Problem\n\nYou might have your own vps and may be lots of \napps you want to deploy inside of it and test the\nfunctionality. The only problem is configuring\nnginx to serve all your app in different route for\nyour domain. For example, you want to do the following-\n- `yourdomain/api` =\u003e Is for your portfolio api, which\nis running at `localhost:9090` of that machine.\n- `yourdomain/blog` =\u003e Is for your blog, running at\n`localhost:8080` of the same machine.\n- `yourdomain/fbapp` =\u003e Some cool facebook app of yours,\nrunning at `localhost:5000`.\n\nYou might want to do it using `proxy-pass` in `nginx`,\nbut if you have not done this in real, let me tell \nyou how painful it is and how complicated it gets when\nyou have to also configure `path rewrite` for your \nroute- since you don't want to see this: `yourdomain/blog/a` to \nget translated into `localhost:8080/blog/a`, cause come on\nthat url does not exist! So, long story short, the \nnginx configuration is complicated and might take you\nloads of nights to actually make it work, finally!\n\n### Solution\n\nIf you know reverse proxy, you already know what this\ntool is going to do. In case you did not understand\nit yet, check below to see what it does-\n![figure](https://raw.githubusercontent.com/dibosh/local-proxy-hub/master/diagram.svg)\n\nSo, one single `proxy-pass` for `location /` in nginx \nconfig is all you need to place. And the `proxy-pass`\nshould be proxying all requests to - `http://localhost:8585`;\nwhere this hub will be running.\n\n### Installation\n\n- `npm install -g pm2`(`pm2` needs to be installed globally)\n- `npm install -g local-proxy-hub`\n\nThe server will automatically be running after the installation\non `8585` port.\n\n### Usage\n\nTo register any of your service/app running in the same \nmachine with this hub is pretty simple via the `cli` \nthat comes along-\n`lph a \u003crouteUrl\u003e \u003cproxyUrl\u003e`\n\nExample- `lph a /admin http://localhost:9093`\n\nCheck all the available commands by typing- `lph -h`\n\nOnce a route is added/updated, the server gets \nrestarted automatically and you don't have to worry\nabout a thing.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsmunim%2Flocal-proxy-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsmunim%2Flocal-proxy-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsmunim%2Flocal-proxy-hub/lists"}