diff --git a/assets/runtime/config/nginx/gitlab b/assets/runtime/config/nginx/gitlab index f4a4760f..2dc4b868 100644 --- a/assets/runtime/config/nginx/gitlab +++ b/assets/runtime/config/nginx/gitlab @@ -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; diff --git a/assets/runtime/config/nginx/gitlab-ssl b/assets/runtime/config/nginx/gitlab-ssl index bd6d21b4..de2c9251 100644 --- a/assets/runtime/config/nginx/gitlab-ssl +++ b/assets/runtime/config/nginx/gitlab-ssl @@ -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;