I got GitLab up and running, but currently it doesn't use SSL. I use the Let's Encrypt Plesk Extension to get free SSL Certificates in general. This is what my setup looks like:
- Plesk v12.5.30_build1205150826.19 os_Ubuntu 14.04
- GitLab 8.8.5
- Let's Encrypt Plesk Extension v1.6 Release 1
- Plesk Subdomain: git.my-domain.com
Plesk Apache & nginx Settings for git.my-domain.com:
Additional directives for HTTP :
<Location />
ProxyPass http://IP-of-my-domain:9999/
ProxyPassReverse http://IP-of-my-domain:9999/
</Location>
Additional directives for HTTPS :
<Location />
ProxyPass https://IP-of-my-domain:9998/
ProxyPassReverse https://IP-of-my-domain:9998/
</Location>
In my gitlab.rb file:
external_url "http://IP-of-my-domain:9999/"
I also found How do I use let’s encrypt with gitlab? and tried to adapt the answers but couldn't figure out what to put into:
nginx['custom_gitlab_server_config']="?"
nginx['custom_gitlab_mattermost_server_config']="?"
Http connection is working flawlessly (Subdomain or IP:Port, both work). As soon as I change to Https it doesn't and I get the following (also if I change external_url to port 9998):
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.
Certificate was installed before the ProxyPass and https works without any problems without the ProxyPass entries (i.e. the certificate exists and is valid).
If anyone got Plesk and GitLab with Let's Encrypt up and running, I would really appreciate if you could share your configuration.