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:
Niclas Mietz 2016-07-23 12:36:43 +02:00 committed by GitHub
commit db70f3f3df
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;