Install LetsEncrypt SSL on Gitlab
To enable LetsEncrypt free SSL on Gitlab, edit file
1 |
vi /etc/gitlab/gitlab.rb |
Modify following configrations
1 2 3 4 5 6 7 |
letsencrypt['enable'] = true external_url "https://gitlab.example.com" letsencrypt['auto_renew'] = true letsencrypt['auto_renew_hour'] = 1 letsencrypt['auto_renew_minute'] = 30 letsencrypt['auto_renew_day_of_month'] = "*/4" |
external_url should start with HTTPS.
Run command
1 |
gitlab-ctl reconfigure |
Now gitlab installation will work with HTTPS.