Set up SSL with letsencrypt on Ubuntu 16.04

Hello. I wan’t to enable HTTPS on GitLab Community Edition 8.13.2

But I am not sure how to start. I found many tutorials and read many files but all showing different way to do it.

What I have done until now:

apt install letsencrypt
mkdir -p /var/www/letsencrypt
letsencrypt certonly --webroot -w /var/www/letsencrypt -d -d

Congratulations! Your certificate and chain have been saved at

But I am not sure how to continue - Would be very happy for some help, thanks

What I have tried:

I could now get it running with this tipps:

edit /etc/gitlab/gitlab.rb
change the external_url to https and:
	nginx['redirect_http_to_https'] = true
	nginx['ssl_certificate']= "/etc/letsencrypt/live/domain/fullchain.pem"
	nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/domain/privkey.pem"
	nginx['custom_gitlab_server_config']="location ^~ /.well-known {\n alias /var/www/letsencrypt/.well-known;\n}\n"
gitlab-ctl reconfigure

Now I only need a solution for adding a second url

This Digital Ocean guide on Ubuntu 16.04 may be helpful,

Follow this tutorial and you will install let’s encrypt on Ubuntu16.04 successfully