Too many redirect on login page after move the site from http to https
I run gitlab-ce 8.16.3, installed as omnibus package on ubuntu server 14.04.
The server run behind a firewall in our private network, after change the config for serve by default https://
the site before serve the login page try to redirect to old http://
address, but the old URL is a local network name.
So when i went outside a try to connect to https://git.globogis.it i get a too many redirection error.
Maybe is related to #1020 (closed)
Gitlab is installed through omnibus package, all custom config or environment is made with touching gitlab.rb
no additional service are present on the server.
The authentication is on LDAP server on the same network.
A snippet of nginx configuration in gitlab.rb
:
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = "/etc/letsencrypt/live/{{ gitlab.url }}/fullchain.pem"
nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/{{ gitlab.url }}/privkey.pem"
nginx['custom_gitlab_server_config'] = "location /.well-known/ { root /usr/share/letsencrypt; }"
Other settings are the default one, the {{
or }}
token is for ansible deploy of our istance.
Some additional info:
$ wget https://git.globogis.it
--2017-02-03 08:19:24-- https://git.globogis.it/
Resolving git.globogis.it (git.globogis.it)... 82.115.171.51
Connecting to git.globogis.it (git.globogis.it)|82.115.171.51|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://linux-git/users/sign_in [following]
--2017-02-03 08:19:24-- http://linux-git/users/sign_in
Resolving linux-git (linux-git)... failed: Name or service not known.
wget: unable to resolve host address ‘linux-git’
linux-git
is the old name.
This happen only on http
request, the operation on repo works as normal (clone, push, pull, ecc..)