{"id":25519582,"url":"https://github.com/banktnbd/reverse-proxy","last_synced_at":"2026-04-13T04:49:38.597Z","repository":{"id":275460598,"uuid":"925921957","full_name":"BankTNBD/reverse-proxy","owner":"BankTNBD","description":"Reverse proxy server from Node.js","archived":false,"fork":false,"pushed_at":"2025-03-07T05:16:16.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T10:59:57.606Z","etag":null,"topics":["http","net","nodejs","reverse-proxy-server","tcp-server"],"latest_commit_sha":null,"homepage":"","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/BankTNBD.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,"zenodo":null}},"created_at":"2025-02-02T04:23:40.000Z","updated_at":"2025-03-21T09:18:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8f364ae-0208-40ad-a967-1babab39175f","html_url":"https://github.com/BankTNBD/reverse-proxy","commit_stats":null,"previous_names":["banktnbd/reverse-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BankTNBD/reverse-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankTNBD%2Freverse-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankTNBD%2Freverse-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankTNBD%2Freverse-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankTNBD%2Freverse-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BankTNBD","download_url":"https://codeload.github.com/BankTNBD/reverse-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BankTNBD%2Freverse-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260072819,"owners_count":22954926,"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":["http","net","nodejs","reverse-proxy-server","tcp-server"],"created_at":"2025-02-19T17:20:08.149Z","updated_at":"2026-04-13T04:49:38.560Z","avatar_url":"https://github.com/BankTNBD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌐 reverse proxy\n\nReverse proxy server usign Node.js.\n\n## 👨🏻‍💻 Authors\n\n- [@BankTNBD](https://github.com/BankTNBD)\n\n## 🛠️ Configuration\n\nBefore starting the server, there are a few steps you need to complete.\n\n**1️⃣ Setup .env file:**\n```\nSSL_KEY=\"PATH/TO/SSL_KEY\"\nSSL_CERT=\"PATH/TO/SSL_CERTIFICATE\"\n```\n\n**2️⃣ Setup list.json file:**\n```json\n[\n    {\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"port\": 8000,\n        \"host\": [ \"HOSTNAME\" ],\n        \"forward\": {\n            \"address\": \"HOSTNAME\",\n            \"port\": 8000\n        }\n    },\n]\n```\n- ```name``` (optional): Before starting the server, there are a few steps you need to complete.\n- ```protocol```: Canba ```http```, ```https``` or ```tcp```.\n- ```port```: The port on which the reverse proxy listens.\n- ```host```: An array of hostnames that the proxy should handle.\n- ```forward```: The destination server details.\n\nExample:\n```json\n[\n    {\n        \"name\": \"Chat Server\",\n        \"protocol\": \"tcp\",\n        \"port\": 8000,\n        \"host\": [ \"your.domain.com\", \"www.domain.com\", \"my.domain.com\" ],\n        \"forward\": {\n            \"address\": \"your-server.local\",\n            \"port\": 3000\n        }\n    },\n    {\n        \"protocol\": \"https\",\n        \"port\": 8001,\n        \"host\": [ \"domain.com\" ],\n        \"forward\": {\n            \"address\": \"your-web-server.local\",\n            \"port\": 3000\n        }\n    },\n    {\n        \"protocol\": \"tcp\",\n        \"port\": 8002,\n        \"host\": \"*\",\n        \"forward\": {\n            \"address\": \"your-web-db.local\",\n            \"port\": 3000\n        }\n    }\n]\n```\n\nExplaination:\n- Requests to ```your.domain.com:8000```, ```www.domain.com:8000```, or ```my.domain.com:8000``` will be forwarded to ```your-server.local:3000``` over TCP.\n- Requests to ```domain.com:8001``` over HTTPS will be forwarded to ```your-web-server.local:3000``` over HTTP.\n- Requests to every doamin in port ```:8002``` will be forwarded to ```your-web-db.local:3000``` over TCP.\n\n## 🚀 Running the Server\n\nAfter cloning this project, follow these steps:\n\n**1️⃣ Navigate to the project directory:**\n```bash\ncd reverse-proxy\n```\n\n**2️⃣ Install dependencies:**\n```bash\nnpm install\n```\n\n**3️⃣ Start the server:**\n```bash\nnpm start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanktnbd%2Freverse-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanktnbd%2Freverse-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanktnbd%2Freverse-proxy/lists"}