server_name:
- git.pixelpark.com
- git01.pixelpark.com
- www_root: /opt/gitlab/embedded/service/gitlab-rails/public/
ssl: true
ssl_cert: /etc/pki/tls/certs/wildcard.pixelpark.com-cert.pem
ssl_key: /etc/pki/tls/private/wildcard.pixelpark.com-key.pem
rewrite_to_https: true
- proxy: unix:/var/opt/gitlab/gitlab-workhorse/socket
+ proxy: http://unix:/var/opt/gitlab/gitlab-workhorse/socket
proxy_set_header:
- 'X-Forwarded-Proto "https"'
- 'X-Forwarded-For $proxy_add_x_forwarded_for'
- 'Host $host'
- 'X-Forwarded-Ssl on'
proxy_cache: gitlab
- client_max_body_size: '250m'
\ No newline at end of file
+ client_max_body_size: '250m'
+ vhost_cfg_append:
+ 'error_page 404': '/404.html'
+ 'error_page 422': '/422.html'
+ 'error_page 500': '/500.html'
+ 'error_page 502': '/502.html'
+ locations:
+ docroot:
+ www_root: /opt/gitlab/embedded/service/gitlab-rails/public/
+ internal: true
+ location: '~ ^/(404|422|500|502)\.html$'