Skip to content

Instantly share code, notes, and snippets.

@umrashrf
Created March 3, 2013 14:26
Show Gist options
  • Save umrashrf/5076313 to your computer and use it in GitHub Desktop.
Save umrashrf/5076313 to your computer and use it in GitHub Desktop.
GNU nano 2.2.4 File: /etc/nginx/sites-enabled/gitlab
# GITLAB
# Maintainer: @randx
# App Version: 4.0
upstream gitlab {
server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket;
}
server {
listen *:80; # e.g., listen 192.168.1.1:80;
server_name gitlab-ci.local; # e.g., server_name source.example.com;
root /home/gitlab/gitlab/public;
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;
error_log /var/log/nginx/gitlab_error.log;
location / {
# serve static files from defined root folder;.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment