debian-mirror-gitlab/lib/support/nginx/gitlab-pages

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
828 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
## GitLab
##
## Pages serving host
server {
listen 0.0.0.0:80;
listen [::]:80 ipv6only=on;
## Replace this with something like pages.gitlab.com
server_name ~^.*\.YOUR_GITLAB_PAGES\.DOMAIN$;
## Individual nginx logs for GitLab pages
access_log /var/log/nginx/gitlab_pages_access.log;
error_log /var/log/nginx/gitlab_pages_error.log;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
2017-09-10 17:25:29 +05:30
proxy_cache off;
2017-08-17 22:00:37 +05:30
# The same address as passed to GitLab Pages: `-listen-proxy`
2017-09-10 17:25:29 +05:30
proxy_pass http://localhost:8090/;
2017-08-17 22:00:37 +05:30
}
# Define custom error pages
error_page 403 /403.html;
error_page 404 /404.html;
}