Make gitlab-runner pull through https

Hi guys,

How can I make gitlab-runner pull repositorys through https?
I alredy register the runner passing the full domain with https:// but still got this error:

fatal: unable to access ‘http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@mydomain.com/user/project.git/’: Failed to connect to mydomain.com port 80: Operation timed out

If I pull using https everything works fine

I alredy tried to set external_url but after I reconfigure the service, everything stop working.

I’m using the latest gitlab and gitlab-runner version inside docker.

Ok I figured out, I can pass a --clone-url tag when registering the runner.

https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-section