Gitlab Pages with personal domain for pages on 11.1.4-ee

Hi.

I’m trying to add Gitlab Pages to my Goitlab installation on gitlab.domain.com

  1. gitlab.domain.com has primary Ip of server . 6.6.6.6
  2. domain.es is a domain for Gitlab Pages . 6.6.6.7
  3. Install cerbot for create a wildcard certificates with Letsencrypt (*.domain.es)
  4. My domain has a wildcard *.domain.es point to IP Gitlab Pages 6.6.6.7

Use GitLab Pages administration for configre with some variations

Edit /etc/gitlab/gitlab.rb

pages_external_url "gitlab.domain.com"
nginx['listen_addresses'] = ['6.6.6.6’].  
pages_nginx['enable'] = false
gitlab_pages['cert'] = "/etc/letsencrypt/live/domain.es/fullchain.pem”
gitlab_pages['cert_key'] = "/etc/letsencrypt/live/domain.es/privkey.pem”
gitlab_pages['external_http'] = ['6.6.6.7:80'] 
gitlab_pages['external_https'] = ['6.6.6.7:443']

Reconfigure gitlab-ctl reconfigure

If try https://kkkkk.domain.es get a valid cert but 4040 page (normal)

Go to blank project create (tips) and setup Project -> Settings --> Pages

Click “New Domain” and add tips.domain.es

Get Domain *.domain.es is restricted

What is my mistake?

1 Like