Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

joshfire/haibu-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx configuration generator for haibu (https://github.com/nodejitsu/haibu)
----------------------------------------------------------------------------

If haibu-balancer doesn't cut it for you, you may want to use a powerful reverse proxy like nginx.

This module will read a haibu status (often at http://127.0.0.1:9002/drones) and create a nginx-upstream.conf
file that you can use in your existing nginx configuration.

TODO: make a service which hooks to haibu-server events and update the config real-time. (w/ hook.io it seems)

config.js should be self-explanatory.


Install
-------

# npm install haibu-nginx -g


Usage
-----

$ haibu-nginx config.js

Then include the generated haibu-upstream.conf in your nginx config. 

You may also want to include haibu-reverseproxy.conf if your config is very simple but I expect 
people to want to use their own custom settings for the server {} section (caches, ...) 

If you want haibu-reverseproxy.conf to work you have to include a "domain" key in your package.json
file just like you would if you used haibu-balancer.


Websockets?
-----------

If you need websocket support, you currently need a custom nginx build:
http://www.letseehere.com/reverse-proxy-web-sockets

About

nginx configuration generator for haibu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published