If we need to change our external url in gitlab we have change it in /etc/gitlab/gitlan.rb, and you have to change the external url like below mentioned.
- cd /etc/gitlab/
- vim gitlab.rb
in this we have to change the required url like below.
external_url 'https://gitlab.testdomain.com'
Then we have to change yml file location /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
- cd /opt/gitlab/embedded/service/gitlab-rails/config/
- vim gitlab.yml
change the hostname of the external url like below
## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: gitlab.testdomain.com
port: 443
https: true
Finally reconfigure the gitlab with below command and restart for the host name.
- gitlab-ctl reconfigure
- gitlab-ctl restart
No comments:
Post a Comment