0.2.0 • Published 7 years ago
glorious-proxy-rotator v0.2.0
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-aliverequests drops. - the package is by default 
httpand nothttps, your proxy can behttpsbut 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
 
0.2.0
7 years ago