Skip to content

Instantly share code, notes, and snippets.

@naoty
Created February 2, 2012 13:12
Show Gist options
  • Select an option

  • Save naoty/1723402 to your computer and use it in GitHub Desktop.

Select an option

Save naoty/1723402 to your computer and use it in GitHub Desktop.
upstream gitlabhq {
server unix:/home/naoty/gitlabhq/tmp/sockets/unicorn.sock;
}
server {
listen 80;
server_name repo.naoty.jp;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://gitlabhq;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment