mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
24 lines
812 B
Plaintext
24 lines
812 B
Plaintext
## GitLab
|
|
##
|
|
## Pages serving host
|
|
server {
|
|
listen 0.0.0.0:80;
|
|
listen [::]:80;
|
|
## Replace this with something like pages.gitlab.com
|
|
server_name ~^.*{{GITLAB_PAGES_DOMAIN}};
|
|
## Individual nginx logs for GitLab pages
|
|
access_log {{GITLAB_LOG_DIR}}/nginx/gitlab_pages_access.log;
|
|
error_log {{GITLAB_LOG_DIR}}/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;
|
|
# The same address as passed to GitLab Pages: `-listen-proxy`
|
|
proxy_pass http://localhost:8090/;
|
|
}
|
|
# Define custom error pages
|
|
error_page 403 /403.html;
|
|
error_page 404 /404.html;
|
|
}
|