Caching registry.gitlab.com for Kubernetes Runner

Many of our builds were today broken because of problems with registry.gitlab.com. We were getting 502 from the server.

We use Nexus as cache for the images from docker-hub.
Is it possible to use Nexus for caching images from the registry.gitlab.com? If so, how to configure it?

I need to specify Remote Storage (eg. https://registry-1.docker.io) and Index (eg. https://index.docker.io/)