# GITLAB CI # Maintainer: @randx # App Version: 2.0 upstream gitlab_ci { server unix:/home/gitlab_ci/gitlab-ci/tmp/sockets/gitlab-ci.socket; } server { listen 80 default_server; # e.g., listen 192.168.1.1:80; server_name ci.gitlab.org; # e.g., server_name source.example.com; root /home/gitlab_ci/gitlab-ci/public; access_log /var/log/nginx/gitlab_ci_access.log; error_log /var/log/nginx/gitlab_ci_error.log; location / { try_files $uri $uri/index.html $uri.html @gitlab_ci; } location @gitlab_ci { proxy_read_timeout 300; proxy_connect_timeout 300; proxy_redirect off; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://gitlab_ci; } }