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:
Reading Certbot

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

Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/myserverdomain.de/fullchain.pem

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: ssl certificate - How do I use let’s encrypt with gitlab? - Stack Overflow

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, https://www.digitalocean.com/community/tutorials/how-to-secure-gitlab-with-let-s-encrypt-on-ubuntu-16-04

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