glorious-proxy-rotator

0.2.0 • Public • Published

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 not https, your proxy can be https but it will be served using http. You can ssl by some other means like cloudflare etc.

TODO

  • Add glorious tests
  • Add option for different format for proxies

Readme

Keywords

Package Sidebar

Install

npm i glorious-proxy-rotator

Weekly Downloads

0

Version

0.2.0

License

none

Unpacked Size

27.1 kB

Total Files

7

Last publish

Collaborators

  • entrptaher