A HTTP proxy based on the Host header (eg: plex.example.org > localhost:32400)
- Cookie authentication with page
- HTTP Basic authentication
- Authentication bypass depending on IP/CIDR
- Redirect to local host if accessing from same network
- Disallow robots
- Whitelist IP/CIDR (including real IP)
- Blacklist IP/CIDR (including real IP)
- Redirections
- URL bypass
- Modify request and response headers
- Easy to configure
- Dual SSL/TCP servers
The default configuration whitelist's Cloudflare's IPv4 ranges and local IP's by default
node .to start ornode . --helpfor a list of optional arguments
- TODO
- If you have too much connections open at the same time:
- Add
Connection: closeheader tomodifiedRequestHeadersor/andmodifiedResponseHeaders, this should prevent multiple requests from being sent over the same connection
- Add
-
If using Cloudflare, there is an issue with caching that can cause the response to be from a completely different service or pathshould be fixed as of d1290dc, I think this was caused from Cloudflare using the same TCP connection for multiple services -
If using Cloudflare caching, you should add a cache rule that bypasses any requests containing the
YAP-UsernameorYAP-Passwordcookie -
I've found many bugs with Bun relating to the HTTP and Net modules, but Bun will probably work (
bun .)
- API server (and maybe frontend) to configure the proxy