I have a VM with only Nginx and Docker on it. I got a certificate from let´s encrypt for my domain. Inside a docker container I have a GitLab installed. Now I´m trying to reach the GitLab through my Nginx Proxy.
My problem is the SSH access to GitLab, because when I try to redirect the SSH Traffic to my Docker via a stream in Nginx, i got the error "address already in use".
In the Docker I have a adress like "127.240.0.1:22:22" and in Nginx I´m redirecting from gitlab.xyz to 127.240.0.1:22 with proxy_pass on TCP port 22. But this don´t work.
Have you any suggestions? Thank you!