mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
Fix Host header in nginx configuration
This will fix the problem if you don't use the typical HTTP/HTTPS ports otherwise nginx will redirects you with the default ports of HTTP/HTTPS .
This commit is contained in:
parent
a816a44395
commit
6614140eae
@ -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