Nginx + Unicorn + Faye Rails 4 Messaging app

December 24, 20143.7k views

I have deployed a rails 4 application as follows:
Nginx, as a reverse proxy server
Unicorn, rails server
Now I want to add a second server, Faye, for messaging alongside with unicorn.
How I can configure nginx to accept and route requests to faye too?