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:
-
misc/ssl-certificate-implemented · master · GitLab.org / GitLab recipes · GitLab
→ I have not /etc/nginx/sites-enabled/gitlab -
doc/settings/nginx.md · master · GitLab.org / omnibus-gitlab · GitLab
→ domain.key and domain.crt not created
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