Docker Registry behind reverse proxy

Describe your question in as much detail as possible:
I’m running Gitlab-CE with the official docker container. I have a reverse nginx proxy handling the SSL certs. I am able to do most things, but I can’t get the registry to work this way.

  • What are you seeing, and how does it differ from what you expect to see?
    When I try to log into the docker registry I get this message:
    Get "": received unexpected HTTP status: 502 Bad Gateway

I followed these instructions about getting things setup.

This is what my config looks like.