GitLab redirects to You are being <a href="https://localhost/users/password/edit?reset_password_token=D5tuzvjrpVyrgyyeW77f">redirected</a>

I installed gitlab just a few weeks ago. gitlab-ce 8.6.7-ce.0

Here is my gitlab.rb:

gitlab_rails['gitlab_host'] = "localhost"

postgresql['enable'] = false . . .

external_url "https://gitlab.example.com" nginx['redirect_http_to_https'] = "true" nginx['ssl_certificate'] = "/opt/gitlab/embedded/ssl/git.mycert.com.crt" nginx['ssl_certificate_key'] = "/opt/gitlab/embedded/ssl/git.mykey.com.key"

redis['enable'] = false . . .

git_data_dir = '/opt/gitlab/git-data'

GitLab redirects my requests to this page when I try:

curl -k https://localhost/users/sign_in

I get this

You are being redirected.

but this page does not display in the browser and in my opinion this is the wrong page to get redirected to.

What am I doing wrong?

Thank you

Peter