Jump to content

Hello everyone,

 

I have a little issue I can't figure out. I am in no way an expert in networking. My issue is that I want to access my Gitlab server from anywhere both in https and ssh for git operations. I did figure out how to configure https to work but I can't make ssh work in any way. I can access the server and use git normally in https only.

 

I run Unraid for my server with a Gitlab docker instance and NginxProxyManager to do the reverse proxy.

 

My configuration is like this

 

My router:

Port 22, 80 and 443 are open and forwarded to my main server IP on an other port for each of them.

The NginxProxyManager listen to the 3 ports forwarded by the router

I have my own domain and have a cname for gitlab.mydomain.com and Gitlab listen to this url https://gitlab.mydomain.com. Of course it is just an example domain name.

 

I tried to forward the port 22 directly to my gitlab server as well as the nginx proxy docker instance and nothing works.

What ever I try, the gitlab server return either not authorized or ask for git password. (I have a ssh key configured)

 

For reference, everything worked before I put my Gitlab server behind my domain and a reverse proxy. In local on a specific IP the ssh access worked like a charm.

 

I know I might not be clear in every way, but I don't know what to do to fix the issue.

 

Thanks

 

 

Link to comment
https://linustechtips.com/topic/1093430-gitlab-access-outside-home-network/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×