Hi guy, hope you are all good.
I encountered an issue while using GitLab and am unsure how to resolve it. I hope someone can provide a solution. I have deployed a GitLab instance using Docker on my personal computer running Ubuntu. This computer is connected to two different local networks, each with its own subnet. Consequently, my server has two IP addresses, leading to a problem with accessing the LFS (Large File Storage) server.
When I set the external_url
in the gitlab.rb
file to the LAN1 address, devices on LAN2 can access GitLab normally but cannot connect to the LFS server. Conversely, if I set it to LAN2, devices on LAN1 cannot access GitLab. LAN1 is a conventional local network, while LAN2 is a LAN created using ZerotierOne for internal network tunneling.
Currently, I am continuously reconfiguring the server to alleviate the issue, but I must find a permanent solution.
the follow picture is showing the problem what I have:
In the scenario depicted, I aim to access GitLab and pull branches using the 10.x.x.x network. However, GitLab is currently configured with an address in the 192.x.x.x network. While regular Git repositories are accessible without issues, there are address-related problems when interacting with the LFS (Large File Storage) repository.
I need devices from two local networks to be able to access (actually, my server is in three networks, but I simplified it for clarity). Access to LFS is crucial. Please provide me with some solutions or suggestions. Thank you very much!