GitLab Container Registry behind AWS ELB

I’m having an issue logging into the container registry on my instance of GitLab, which is behind an AWS ELB. Please see this Stack Overflow post.

Is there anyway I can increased the allowed header size for nginx from within gitlab.rb? I’ve tried the custom settings tag, but can’t seem to get it to work properly.