mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
Revert "nginx" updated configs"
This reverts commit 48cf19f9571cc5519908ee2d5ae0df71a9e5871e. Closes #800
This commit is contained in:
parent
db70f3f3df
commit
ce7b036dec
@ -52,15 +52,10 @@ server {
|
||||
|
||||
proxy_http_version 1.1;
|
||||
|
||||
## 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}}:{{GITLAB_PORT}};
|
||||
proxy_set_header X-Forwarded-Host "";
|
||||
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Proto {{NGINX_X_FORWARDED_PROTO}};
|
||||
|
||||
proxy_pass http://gitlab-workhorse;
|
||||
}
|
||||
|
||||
@ -98,16 +98,11 @@ server {
|
||||
|
||||
proxy_http_version 1.1;
|
||||
|
||||
## 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}}:{{GITLAB_PORT}};
|
||||
proxy_set_header X-Forwarded-Host "";
|
||||
|
||||
proxy_set_header Host $http_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 $scheme;
|
||||
proxy_set_header X-Forwarded-Proto {{NGINX_X_FORWARDED_PROTO}};
|
||||
proxy_pass http://gitlab-workhorse;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user