Example node project with nginx, haproxy, and pool-hall
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with schleyfox:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
logs
README.md
RequestQueue.js
haproxy_example.cfg
index.js
nginx.conf
package.json

README.md

Example nginx, haproxy, pool-hall, node application

Running

This is designed to work on linux systems where you have node, npm, haproxy, and nginx installed, ideally from your distro's package manager of choice.

Make sure you have ports 9000-9005 open

nginx

nginx -c nginx.conf -p ./

haproxy

haproxy -f haproxy_example.cfg

node example_app

npm install
npm start

With this you should be able to make requests on http://localhost:9000/health and see 'OK'