인생은 여행

GitLab 서버 주소 변경 본문

카테고리 없음

GitLab 서버 주소 변경

산떠 버하둘 2021. 1. 15. 18:47

GitLab 서버의 IP가 변경되었거나 도메인 주소가 변경된 경우 기존에 서비스되고 있는 GitLab 서버의 경우 설정을 변경해주어야 한다. 그렇지 않으면 프로젝트내 소스 파일들은 이전 주소를 참조하게 된다.

 

설정 변경은 `/etc/gitlab/gitlab.rb` 파일을 아래와 같이 변경한 후,

external_url "http://gitlab.example.com"

다음 명령을 실행하면 설정이 적용되고 서비스가 재시작한다.

sudo gitlab-ctl reconfigure

 

참고 사이트:

docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab

 

Configuration options | GitLab

Configuration options GitLab is configured by setting the relevant options in /etc/gitlab/gitlab.rb. See package defaults for a list of default settings and visit the gitlab.rb.template for a complete list of available options. New installations starting f

docs.gitlab.com

 

Comments