glorious-proxy-rotator
v0.2.0
Published
Simple proxy rotator
Downloads
6
Readme
glorious-proxy-rotator
Simple proxy rotator
The original code is from redco/goose-proxy-rotator, modified on entrptaher/groovy-proxy-rotator and entrptaher/groovy-proxy-rotator-old for sake of dockerization and ease of use.
Usage
proxy({ proxies, config }).then(() => console.log("Proxy running"));
The proxies look like an array, and you must provide a list,
[
{ "host": "0.0.0.0", "port": 8001 },
{ "host": "0.0.0.0", "port": 8002, "auth": "username:password" }
]
The config can determine port and retries on error, these are set by default.
{ "proxyPort": 3456, "retryDelay": 1000, "maxRetries": 3 }
Limitations
- Sometimes the long-lived
keep-alive
requests drops. - the package is by default
http
and nothttps
, your proxy can behttps
but it will be served usinghttp
. You can ssl by some other means like cloudflare etc.
TODO
- Add glorious tests
- Add option for different format for proxies