This is an old revision of the document!
1. Add following to your /etc/gitlab/gitlab.rb
external_url 'https://git.yourdomain.tld' nginx['listen_address'] = 'localhost' nginx['listen_port'] = 8888 nginx['listen_https'] = false
2. Reconfigure gitlab-ce
gitlab-ctl reconfigure
3. Create a subdomain or domain alias
4. Enable needed headers module
a2enmod headers
5. Configure Letsencrypt entry (when avaliable)
6. Create certificate and copy to /etc/gitlab/ssl/git.yourdomain.tld.pem (decrypted private, public, intermediate) 7. Reload apache2 service
apache2 reload