Pipelines external registry

How do I specify the credentials for pushing to an external registry?
I have setup a registry on k8s with nginx ingress in front and basic auth and it works. I’ve added it on the “registries” entries as well. If I configure the pipeline to deploy there by selecting it from the dropdown, the build fails because it can’t connect to the external registry (auth fails).
If I try to deploy on the internal k8s url by selecting that from the dropdown (so, no basic auth to bother it) then it fails because it tries to connect to https instead of http (and the internal url is http only).

…aaaaaaaaaaaand it was a typo + proxy_body_size on the LB.