mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
Merge pull request #799 from SolidNerd/fix-nginx_host_header
Fix nginx Host header with Port to receive the correct redirects
This commit is contained in:
commit
db70f3f3df
@ -55,7 +55,7 @@ server {
|
||||
## 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 Host {{GITLAB_HOST}}:{{GITLAB_PORT}};
|
||||
proxy_set_header X-Forwarded-Host "";
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
@ -101,7 +101,7 @@ server {
|
||||
## 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 Host {{GITLAB_HOST}}:{{GITLAB_PORT}};
|
||||
proxy_set_header X-Forwarded-Host "";
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user