Skip to content

Instantly share code, notes, and snippets.

@eduardodeoh
Created November 2, 2012 21:02
Show Gist options
  • Save eduardodeoh/4004279 to your computer and use it in GitHub Desktop.
Save eduardodeoh/4004279 to your computer and use it in GitHub Desktop.
Upstream configuration for nginx
#Upstream for Graphite
upstream graphite_app {
server 127.0.0.1:8000 fail_timeout=0;
}
#Upstream for my app
upstream unicorn-todolist {
server unix:/var/www/rails_apps/todolist/current/tmp/sockets/unicorn.socket fail_timeout=0;
}
#Upstream for Gitlab
upstream gitlab_app {
server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket fail_timeout=0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment