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
{{:start:howto:gitlabimscpconfig.png?800|}}
4. Enable needed headers module
a2enmod headers
5. Configure Letsencrypt entry (when available)
**or**
6. Create certificate and copy to /etc/gitlab/ssl/git.yourdomain.tld.pem (decrypted private, public, intermediate)
7. Reload apache2 service
apache2 reload