mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
nginx" updated configs
This commit is contained in:
parent
10c44f0791
commit
48cf19f957
@ -52,10 +52,15 @@ server {
|
||||
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
## By overwriting Host and clearing X-Forwarded-Host we ensure that
|
||||
## internal HTTP redirects generated by GitLab always send users to
|
||||
## YOUR_SERVER_FQDN.
|
||||
proxy_set_header Host {{GITLAB_HOST}};
|
||||
proxy_set_header X-Forwarded-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 {{NGINX_X_FORWARDED_PROTO}};
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_pass http://gitlab-workhorse;
|
||||
}
|
||||
|
||||
@ -98,11 +98,16 @@ server {
|
||||
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
## By overwriting Host and clearing X-Forwarded-Host we ensure that
|
||||
## internal HTTP redirects generated by GitLab always send users to
|
||||
## YOUR_SERVER_FQDN.
|
||||
proxy_set_header Host {{GITLAB_HOST}};
|
||||
proxy_set_header X-Forwarded-Host "";
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Ssl on;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto {{NGINX_X_FORWARDED_PROTO}};
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://gitlab-workhorse;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user