Install LetsEncrypt SSL on Gitlab

To enable LetsEncrypt free SSL on Gitlab, edit file

vi /etc/gitlab/gitlab.rb

Modify following configrations

letsencrypt['enable'] = true
external_url "https://gitlab.example.com"
letsencrypt['contact_emails'] = ['[email protected]']
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

gitlab-ctl reconfigure

Now gitlab installation will work with HTTPS.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *