Thin behind Nginx
Check out this sample Nginx config file to proxy requests to a Thin backend. then start your Thin cluster like this:
thin start -s3 -p 5000
You can also setup a Thin config file and use it to control your cluster:
thin config -C myapp.yml -s3 -p 5000 thin start -C myapp.yml
To connect to Nginx using UNIX domain sockets edit the upstream block in your nginx config file: nginx.conf
upstream backend {
server unix:/tmp/thin.0.sock;
server unix:/tmp/thin.1.sock;
server unix:/tmp/thin.2.sock;
}
and start your cluster like this:
thin start -s3 --socket /tmp/thin.sock