0.3.13 • Published 9 years ago

mallorca v0.3.13

Weekly downloads
109
License
-
Repository
github
Last release
9 years ago

Mallorca

Man-in-the-middle proxy for HTTPS with SSL verification and connection pooling/keep-alive.

Build Status

Installation

$ npm -g install mallorca

Usage

$ mallorca \
  --cert /etc/ssl/certs/your-mallorca-proxy.crt \
  --key /etc/ssl/certs/your-mallorca-proxy.key \
  --port 5000 \
  --maxsockets 20 \
  --keepalive-socket-count 10 \
  --pidfile /var/run/mallorca.pid \
  --cacert /etc/ssl/certs/ca-root-for-externalsite.pem \
  www.someexternalsite.com

Development

Ensure you have the following dependencies installed and in your PATH:

  • node (version > 0.10 should do)
  • npm

Then, you should be able to run the tests:

$ npm test

Finally, to launch Mallorca:

$ ./bin/mallorca YOUR OPTIONS HERE...

Reserved routes

The following routes are reserved for the operation of the Mallorca proxy, and are not proxied to the upstream web server.

GET /_mallorca/heartbeat

Indicates whether Mallorca can consistently maintain its connection to the upstream server. A response code of 200 indicates a healthy connection, 503 indicates connection problems.

PUT /_mallorca/connection_pool

Enables changing connection pool settings without having to restart Mallorca. Accepts a payload of either a JSON object or form encoded key-values:

max - Maximum number of connections to the upstream server

keepalive - Number of connections to keep open when no more requests are queued

GET /_mallorca/uncaught_error

Simulates an internal error within the Mallorca proxy, does not respond. You must have set the allow-error-routes command line switch to use this route.

GET /_mallorca/stat

Provides statistics for the connection pool and latencies of recent requests to the upstream server.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
0.3.13

9 years ago

0.3.12

9 years ago

0.3.11

10 years ago

0.3.10

10 years ago

0.3.9

10 years ago

0.3.8

10 years ago

0.3.7

10 years ago

0.3.6

10 years ago

0.3.5

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago