Running GitLab behind a (second) Reverse-Proxy over https?
In that case you should undefine the
proxy_set_header X-Forwarded-Proto
header in the backend nginx and set it in the frontend nginx. Otherwise GitLab/RoR will redirect you to http on various ocasions. You should also set https in the config/gitlab.yml.