Move HTTPS enabled checks into gitlab-pages and out of Rails
From https://gitlab.com/gitlab-com/production/issues/358#note_96812921, we found that if Sideiq workers don't have the
gitlab_pages['external_https'] setting, then the
https_only variable will return
false because of this line: https://gitlab.com/gitlab-org/gitlab-ee/blob/a5ebf492c9b4582669d22653e35b7e1fee613247/app/models/project.rb#L947
I think it makes sense to remove this logic from Rails and into the GitLab Pages daemon. That is, Rails should only be concerned about exporting the boolean value set by the user, and the GitLab Pages daemon can decide whether to ignore the value based on whether
-listen-https has been configured.