daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jun 28th, 2012 29 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         upstream gitlab {
  2.                 server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.sock$
  3.         }
  4.  
  5.         server {
  6.                 listen localhost:80;
  7.                 server_name .bluringdev.com;
  8.                 root /home/gitlab/gitlab/public;
  9.  
  10.                 # individual nginx logs for this gitlab vhost
  11.                 access_log /var/log/nginx/gitlab_access.log;
  12.                 error_log /var/log/nginx/gitlab_error.log;
  13.  
  14.         location / {
  15.                 # serve static files from defined root folder;.
  16.                 # @gitlab is a named location for the upstream fallback$
  17.                 try_files $uri $uri/index.html $uri.html @gitlab;
  18.                 }
  19.  
  20.                 # if a file, which is not found in the root folder is r$
  21.                 # then the proxy pass the request to the upsteam (gitla$
  22.                 location @gitlab {
  23.                 proxy_redirect off;
  24.                 # you need to change this to "https", if you set "ssl" $
  25.                 proxy_set_header X-FORWARDED_PROTO http;
  26.                 proxy_set_header Host gitlab.bluringdev.com:80;
  27.                 proxy_set_header X-Real-IP $remote_addr;
  28.  
  29.                 proxy_pass http://gitlab;
  30.         }
  31.  
  32. }
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top