Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atrue/node-proxy-switcher

conditional proxy switcher supporting WebSockets
https://github.com/atrue/node-proxy-switcher

Last synced: about 1 month ago
JSON representation

conditional proxy switcher supporting WebSockets

Awesome Lists containing this project

README

        

# node-proxy-switcher
conditional proxy switcher supporting WebSockets

## Run
> yarn start

## API
- `port` (default: 5050) - the port the proxy is running
- `logging` (default: false) - enable logging of requests
- `primary` - options of the primary target proxy https://github.com/http-party/node-http-proxy#options
- `secondary` - options of the secondary target proxy https://github.com/http-party/node-http-proxy#options
- `switcher` - conditional check which target to use (primary/secondary)
- `onRequest` - modifying primary request, helpful to modify headers to avoid CORS