Gitlab pages domain serving gitlab repositories - wildcard domain support
So we have setup gitlab pages (omnibus) according to https://docs.gitlab.com/ce/administration/pages/#wildcard-domains-with-tls-support
With this setup (see below for the gitlab.rb
) gitlab itself (i.e. the repositories) are served both through git.domain.com
as well as example.io
. How do I ensure example.io
only serves the gitlab pages and not Gitlab?
Due to the TLS setup, the browser does warn about example.io
presenting the wrong certificate (from git.domain.com
), but I feel it shouldn't forward or listen on this address at all.
gitlab.rb:
external_url "https://git.domain.com"
pages_external_url "https://example.io/"
gitlab_pages['access_control'] = true
pages_nginx['redirect_http_to_https'] = true
pages_nginx['ssl_certificate'] = "/etc/gitlab/ssl/combined.pem"
pages_nginx['ssl_certificate_key'] = "/etc/ssl/private/pages.key"