nginx configuration does not include gitlab-ci configuration
I am not sure what I am doing wrong, my gitlab.rb
looks like this:
external_url 'https://gitlab.mycompany.com'
nginx['redirect_http_to_https'] = true
ci_external_url 'https://gitlab-ci.mycompany.com'
ci_nginx['redirect_http_to_https'] = true
ci_nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.mycompany.com.crt"
ci_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.mycompany.com.key"
It does generates the nginx config file with the correct settings:
ls /var/opt/gitlab/nginx/conf/
gitlab-ci-http.conf gitlab-http.conf nginx.conf
but gitlab-ci-http.conf
file is not included on nginx.conf
:
cat /var/opt/gitlab/nginx/conf/nginx.conf | grep include
include /opt/gitlab/embedded/conf/mime.types;
include /var/opt/gitlab/nginx/conf/gitlab-http.conf;
If I do some changes breaking the syntax to gitlab-ci-http.conf
and then run gitlab-ctl restart
nginx seems to load correctly indicating that this file is not being used anywhere.
Am I missing some other configuration in my gitlab.rb
?
Thanks in advance