Search code examples
sshproxygitlabdevopshaproxy

Gitlab with SSH behind HAProxy


I have GitLab configuration with HAProxy as a reverse proxy server. With current settings haproxy redirects https requests to gitlab backend and it works fine. The problem is how to redirect ssh requests? Users can use https for commits but can`t use ssh in this configuration.

How to make working https and ssh together?


Solution

  • I`ve solved my problem by installing sslh on the server and adding frontend for tcp connections in haproxy