Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.
Problem to solve
We did a platform upgrade from 16.3.5 to 18.1.1. With the new version we are facing some issues with redirects to projects from the main gitlab page.
Our Setup works with an external Loadbalancer, the ssl handling is deald with the nginx.
The loadbalancer redirects from 443 to 8081 on the node gitlab is running on (docker).
When going to a project from the main page the constructred url includes the port number. With our setup, the request dosent hit as the loadbalancer expects traffic on 443.
When not using the gitlab main page, and going via the profile page and contributed projects. The url is constructed without the port and everythings fine. How can Iachieve that gitlab does not include the port in any of the redirects?
see constructed url with port
see constructed url without port to the same repo
Steps to reproduce
Gilab Community Edition 18.1.1
with loadbalancer in front rooting from 443 to 8081.
Configuration
Only two parameters are set from vanilla in Gitlab.rb
like external-url
nginx ssl handling
Versions
- [ x] Self-managed
Versions
System information
System:
Current User: git
Using RVM: no
Ruby Version: 3.2.5
Gem Version: 3.6.9
Bundler Version:2.6.9
Rake Version: 13.0.6
Redis Version: 7.2.9
Sidekiq Version:7.3.9
Go Version: unknown
GitLab information
Version: 18.1.1
Revision: 1587ac6c162
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 16.8
URL: “some.url:8081”
HTTP Clone URL: “some.url/some-group/some-project.git”
SSH Clone URL: git@some.url:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 14.42.0
Repository storages:
- default: unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Gitaly
- default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket
- default Version: 18.1.1
- default Git Version: 2.49.0.gl2
Thank you very much for your help
Helpful resources
- Check the FAQ for helpful documentation, issues/bugs/feature proposals, and troubleshooting tips.
- Before opening a new topic, make sure to search for keywords in the forum search
- Check the GitLab project for existing issues. If you encounter a bug, please create a bug report issue.
- Review existing troubleshooting docs.
Thanks for taking the time to be thorough in your request, it really helps! ![]()

