A HTTP proxy based on the Host
header (eg: plex.example.org
> localhost:32400
)
- Cookie authentication with page
- Basic authentication
- Authentication bypass depending on IP/CIDR
- Disallow robots
- Display real IP
- Whitelist IP/CIDR
- Blacklist IP/CIDR
- Redirections
- URL bypass
- Modify request and response headers
- Can be imported as JS module
- Easy to configure
The default configuration whitelist's Cloudflare's IPv4 ranges and local IP's by default
node .
to start ornode . --help
for a list of optional arguments
- TODO
- If you have too much connections open at the same time:
- Add
Connection: close
header tomodifiedRequestHeaders
or/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-Username
orYAP-Password
cookie -
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