mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
squash following commits: - 32f5332b05a6064169e6cc07d9c4a60b6a3dc7c5 for configgitlab-pages/config - f974a0197c74ca17343e5e3ff99a633347d8ad67 for config/gitlab-shell/config.yml - 1104bacb29ed7f20bdf20015552299bd08ae7313 for config/gitlabhq/cable.yml - 6ce37d8706cb289136385a7c498ad8c42faaab2c for config/gitlabhq/resque.yml - 7336e042728f63da2cc302b6fd6f975eb26566dc for config/nginx/gitlab - 1f39dcaabe7d3daa3b70ef0ae98ea8e30659e1e0 for config/nginx/gitlab-pages - 76aaf571e992c6e5b970a437f8c46158d9867d65 for config/nginx/gitlab-ssl - 549f717ec0810c8e11f30fb40f08997c0b84b5e3 for env-defaults but without KAS-related configs (original: add WEBTOKEN secret, remove GITLAB_KAS_SECRET)
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://127.0.0.1:8090/;
|
|
}
|
|
# Define custom error pages
|
|
error_page 403 /403.html;
|
|
error_page 404 /404.html;
|
|
}
|