Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/atrue/node-proxy-switcher
- Owner: Atrue
- Created: 2023-03-02T05:59:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-02T06:19:50.000Z (over 1 year ago)
- Last Synced: 2024-10-03T11:59:18.057Z (about 2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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