Linux/Gitlab

gitlab https ssl 적용

준섭이 2023. 12. 28. 11:16
728x90

### gitlab https 적용

1. 인증서 준비 및 도메인명으로 인증서 네임 변경

ex) git.bluemary.com.crt

 

2. 인증서 해당 경로 이동

cp ./git.bluemary.com* /etc/gitlab/ssl/

 

3. gitlab설정

gitlab-ctl stop

vi /etc/gitlab/gitlab.rb
external_url 'https://git.bluemary.com'

#nginx['client_max_body_size']='250m'
nginx['redirect_http_to_https']=true

## gitlab 재설정
gitlab-ctl reconfigure

## gitlab 시작
gitlab-ctl start