Health Check endpoint does not redirects to https
Summary
Health Check endpoint does not redirects to https.
Steps to reproduce
Add nginx['redirect_http_to_https'] = true to config.
curl -I http://gitlab_url/-/health
What is the current bug behavior?
curl response:
HTTP/1.1 404 Not Found
What is the expected correct behavior?
curl response:
HTTP/1.1 301 Moved Permanently
[...]
Location: https://gitlab_url:443/-/health`
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 18.04 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.22.0 Sidekiq Version:5.2.7 Go Version: unknownGitLab information Version: 12.3.5 Revision: 2417d5becc7 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.9 URL: https://git.broduction.net HTTP Clone URL: https://git.broduction.net/some-group/some-project.git SSH Clone URL: git@git.broduction.net:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: azure_oauth2
GitLab Shell Version: 10.0.0 Repository storage paths:
- default: /disk2/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 10.0.0 ? ... OK (10.0.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 14/8 ... yes 1/9 ... yes 4/11 ... yes 4/13 ... yes 4/16 ... yes 14/17 ... yes 4/18 ... yes 4/19 ... yes 14/20 ... yes 4/21 ... yes 10/22 ... yes 10/24 ... yes 28/25 ... yes 28/27 ... yes 14/28 ... yes 17/29 ... yes 19/31 ... yes 14/34 ... yes 28/35 ... yes 22/38 ... yes 24/40 ... yes 22/41 ... yes 24/42 ... yes 24/45 ... yes 24/47 ... yes 24/48 ... yes 22/49 ... yes 22/50 ... yes 26/54 ... yes 26/55 ... yes 27/57 ... yes 27/58 ... yes 29/59 ... yes 30/60 ... yes 33/62 ... yes 14/63 ... yes 40/66 ... yes 42/67 ... yes 42/68 ... yes 45/69 ... yes 42/70 ... yes 42/71 ... yes 42/72 ... yes 42/73 ... yes 48/74 ... yes 42/75 ... yes 49/76 ... yes 49/77 ... yes 49/79 ... yes 50/81 ... yes 51/87 ... yes 51/88 ... yes 27/89 ... yes 50/90 ... yes 50/91 ... yes 33/92 ... yes 52/93 ... yes 54/94 ... yes 55/95 ... yes 40/98 ... yes 56/99 ... yes 56/100 ... yes 57/101 ... yes 56/102 ... yes 56/103 ... yes 59/104 ... yes 60/105 ... yes 40/106 ... yes 61/107 ... yes 60/108 ... yes 56/109 ... yes 57/110 ... yes 57/111 ... yes 40/112 ... yes 54/113 ... yes 40/114 ... yes 54/115 ... yes 61/116 ... yes 61/118 ... yes 4/119 ... yes 40/120 ... yes 40/121 ... yes 54/122 ... yes 56/123 ... yes 62/124 ... yes 62/125 ... yes 62/126 ... yes 63/127 ... yes 63/130 ... yes 63/131 ... yes 45/132 ... yes 65/133 ... yes 65/135 ... yes 65/136 ... yes 65/137 ... yes 65/138 ... yes 66/139 ... yes 66/140 ... yes 66/141 ... yes 66/142 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.22.0) Git user has default SSH configuration? ... yes Active users: ... 11 Is authorized keys file accessible? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished