Hi, I was wounding if anyone had any ideas, after an issue with GitLab pages after upgrading to 13.7.1 from 13.6.x
All my GitLab pages now want to redirect to HTTPS, even though I have in the gitlab.rb
file, disabled the http_to_https config to false. I also noticed in the GitLab Pages preferences in a project, that there is a “New Domain” button and checkbox for “Force HTTPS”, which if I disabled I do not get the redirect.
The questions is why did that all of a sudden appear or get checked when I Upgraded and why is that option there when I do not have “custom domains” enabled (at least I think I dont). and/how would I disabled that checkbox for all projects.
Really hope someone has some insights.
Cheers,
Julian
What I have in /etc/gitlab/gitlab.rb
pages_external_url "http://......
gitlab_pages['enable'] = true
gitlab_pages['redirect_http'] = false
pages_nginx['enable'] = true
pages_nginx['redirect_http_to_https'] = false
sudo gitlab-rails console
--------------------------------------------------------------------------------
Ruby: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
GitLab: 13.7.1-ee (d49cd5e5165) EE
GitLab Shell: 13.14.0
PostgreSQL: 11.9
--------------------------------------------------------------------------------
Loading production environment (Rails 6.0.3.3)
irb(main):001:0> Gitlab.config.pages.external_https
=> true
irb(main):002:0> Gitlab.config.pages.external_http
=> false