This pic is map my using Network.
if PC-A access “192.168.0.5:48080” , Then access GitLab top page using port forwarding.
if CentOS7-Router get access port 48080, forward 192.168.1.3:80.
Yes. I changed. but when I changed “external_url” , web page shows me 500 error .
Of cource , I carried out gitlab-ctl reconfigure and gitlab-ctl restart .
Maybe I think , if Gitlab is changed “external_url” to “192.168.0.5:48080” , it is trying to send all packet to “external_url” .
But , the “external_url” is 192.168.0.5:48080 , so it isn’t able to send packet .
so that it show me 500 error.
You should change the host port and forward at the same time. For example, I deploy gitlab (by docker) on my ubuntu(192.168.196.1) using the port 180. If I want the clone url is http://192.168.196.1:180/.... in which there exits port, I must change the nginx listen port (in the docker) from 80 into 180. Because gitlab-docker defaultly use the port 80 to access the repo.