Configuring SSL with GitLab plugin

Joined
Oct 2, 2019
Messages
1
Hi,

As the title suggests, I installed the GitLab plugin jail on my FreeNAS 11.2-U5 and the configuration files seem noticeably different than vanilla GitLab installation (maybe I'm wrong, but following the GitLab documentation and trying to find stuff on the jail, that's how I felt).

I usually manage to find the solution by myself after a lot of search and googling but this time I couldn't so I came here to hopefully crowdsource the answer or get some expert advice.

One of these things that seem different is configuring HTTPS and give the server SSL certificates. A related questions is posted here regarding configuring external_url.

From what I understand, I need to configure the external_url by setting the host in gitlab.yaml but I also need to put SSL certificates somewhere and probably do something regarding HTTPS and ports and pointing to the certificates. However, I can't seem to find the way to do that.

One of the things that I tried was to uncomment lines in /usr/local/etc/nginx/nginx.conf regarding SSL (at the end of the file). This seems to have broken the jail, which I could not access anymore after a restart. I had to rollback the change.

My certificates were issued by Let's Encrypt in the FreeNAS console using this guide for a root domain and a subdomain (example.com and duck.example.com). This certificate is used for login. The fullchain and key are also copied to Nextcloud jail (which I actually managed to set up SSL after lot of digging). It is also copied to a place in GitLab jail, but I don't really know what I'm doing there I think.

If anyone has suggestions or knows how to properly setup SSL inside the GitLab jail, I would very much appreciate a step-by-step instruction of how dummies like me can do that.
 

ianhailey

Cadet
Joined
Feb 24, 2020
Messages
6
I would like to know how to get HTTPS running with this plugin (I have GitLab plugin version 12.0.6) also!
 
Top