-
- Downloads
Merge branch 'nginx-support-ssl-reverse-proxy' into 'master'
Support proxied SSL This MR makes it possible to proxy SSL by disabling HTTPS on the GitLab nginx server. This is used to support the use case where a reverse proxy handles all the HTTPS interaction with the user but the GitLab nginx process communicates over HTTP with the reverse proxy: ``` User <-> HTTPS (reverse proxy) on https://mydomain.com <-> GitLab nginx server on http://localhost:8080 ``` Tested by configuring a GitLab Docker image with the options: ``` external_url 'https://mydomain.com' nginx['listen_port'] = 8080 nginx['listen_https'] = false ``` The nginx reverse proxy settings: ``` location / { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } ``` See #489 See merge request !319
No related branches found
No related tags found
Showing
- CHANGELOG.md 4 additions, 0 deletionsCHANGELOG.md
- doc/settings/nginx.md 21 additions, 0 deletionsdoc/settings/nginx.md
- files/gitlab-config-template/gitlab.rb.template 1 addition, 0 deletionsfiles/gitlab-config-template/gitlab.rb.template
- files/gitlab-cookbooks/gitlab/attributes/default.rb 1 addition, 0 deletionsfiles/gitlab-cookbooks/gitlab/attributes/default.rb
- files/gitlab-cookbooks/gitlab/recipes/nginx.rb 6 additions, 1 deletionfiles/gitlab-cookbooks/gitlab/recipes/nginx.rb
Please register or sign in to comment