Home > other >  Gitlab network is mapped to a network outside, clone should address how to configure?
Gitlab network is mapped to a network outside, clone should address how to configure?

Time:11-07

Network IP is 10.1.0.112 through a router IP mapped to the network, the network IP is 119.1.1.181, but the address of the clone or localhost
Through online search methods to be told that modify later vim/etc/gitlab gitlab.
in rbExternal_url, but directly to modify the IP for the network, after the restart gitlab don't have access to the
How should match can make clone http://localhost:8080/test.git into public IPclone http://119.61.21.182:28080/test.git

CodePudding user response:

Solved, our way of SSH didn't also the way to use should be open ports

CodePudding user response:

How solve the building Lord, I also encountered such a problem, trying to build the gitlab, public domain mapping on external_url, outside under the network environment can't pull operation code,

CodePudding user response:

1. The first network IP git access normal can
2. When the router mapping, configure the router port mapping, can guarantee the SSH connection, is ok,

CodePudding user response:

Directly modify the configuration file:
Sudo vim/opt/gitlab/embedded/service/gitlab - rails/config/gitlab yml

# # GitLab Settings
Gitlab:
# # Web server Settings (note: the host is the FQDN, do not include http://)
Host: 119.1.1.181
Port: 28080
HTTPS: false

And then restart the gitlab:
Sudo gitlab - CTL restart

CodePudding user response:

Is again next time you're reconfigure change forced back

CodePudding user response:

refer to 6th floor LF5702 response:
is again next time you're reconfigure change forced back


You can edit the/etc/gitlab/gitlab rb, then sudo gitlab - CTL reconfigure

CodePudding user response:

refer to 7th floor tiswg response:
Quote: refer to the sixth floor LF5702 response:

Is again next time you're reconfigure change forced back


You can edit the/etc/gitlab/gitlab rb, then sudo gitlab - CTL reconfigure

according to what you said this way, can appear outside the building Lord said mapping of network problems.

CodePudding user response:

Is this way and the specific solution, please

CodePudding user response:

Under the/etc/gitlab/gitlab rd nginx configuration also to modify
  • Related