TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Simple reverse proxy router in Node.js for multi tenant server

1 pointsby durkesabout 2 years ago
I am excited to share my latest creation: a powerful yet super simple Node.js reverse proxy server that forwards HTTP requests to a specified port based on the request host header &#x2F; domain.<p>I use this for running multiple processes on a single server for different domains or subdomains. It supports &quot;hot reload&quot; by just editing the map object in the configuration file, and works great behind something like Cloudflare.

1 comment

durkesabout 2 years ago
Example config:<p>const domainToPort = { &#x27;localhost:3000&#x27;: 3001, &#x27;example.com&#x27;: 3002, &#x27;api.example.com&#x27;: 3003, };