• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Plesk Obsidian 18 + Docker + Gitlab - SSL and SSH issues

pau.iranzo

New Pleskian
Hi everyone,

We have installed the Docker extension in our Plesk Obsidian 18 server. After that we have installed the gitlab-ce container and associated it with a custom subdomain. To make it work we had to:
  • Add the correct volume mapping (so we don't loose data when we restart the container)
  • Add an extra environment variable (GITLAB_OMNIBUS_CONFIG indicating the external_url: external_url 'http://git.xxxx.com/'; gitlab_rails['lfs_enabled'] = true;)
  • Add the port mapping in the custom subdomain
1582601357145.png
1582601566171.png

What works:
What I would like to 'improve':
  • Configure the external_url with https instead of http. Letsencrypt works at a subdomain level (when there isn't any docker), but docker won't start if I change the external url to use https. Basically, when I try to set the external_url with https, the container is not able to start (when with http it works fine). I would like to do this to have the proper url in my repos (the screenshot below shows the error when the container tries to start but throws the letsencrypt error):

1582602800584.png
  • On the other hand, the most important thing: I would like to clone my repo using "git clone [email protected]:magento/regalosconfoto-magento2.git" instead of using the 'git clone ssh://[email protected]:32773/magento/regalosconfoto-magento2.git' expression. When I try to clone it with the 'short' expression, it asks me for password (because there isn't any actual port mapping that tells the server that when cloning, port 22 should point to port 32773). I've tried to set a different port mapping at a subdomain/subfolder level, but it doesn't work either (it still do not connect with the docker machine port 22):
1582603195804.png

How can I solve these 2 issues? I tried to explain as better as possible... but it isn't easy :S

Thank you for your help
 

Attachments

  • 1582601894084.png
    1582601894084.png
    43.8 KB · Views: 95
  • 1582603153292.png
    1582603153292.png
    17.7 KB · Views: 140
Hi all,

Thanks to this other post:

I've been able to solve the issue related to https. Basically, I had to specify the nginx listen port on GITLAB_OMNIBUS_CONFIG as follows:
GITLAB_OMNIBUS_CONFIG = external_url 'https://gitlab.brildor.com'; nginx['listen_port']=80; nginx['listen_https']=false;

I still cannot clone the respository without using ssh://.
 
Back
Top