Gitlab custom ssh url

We are in the process of installing gitlab in our environment and would like to use the following setup:


  • change the ssh port gitlab listens on to 2222
  • use the LoadBalancer to accept requests on port 22 and forward them to 2222
  • use ssh:// as Clone with SSH url (so without port 2222)

We can only find two related settings to this problem:

  • gitlab_ssh_host which only changes the hostname
  • gitlab_shell_ssh_port which only changes the port

Changing the port would also result in a Clone with SSH url with a different port, which is what we would like to avoid. Is there an option to explicitly set a ssh clone url?