I'm trying to configure a GitLab on premise with an internal GitLab registry.
I have to choose between gitlab_rails['registry* parameters :
$ sudo grep "gitlab_rails.*'registry" /etc/gitlab/gitlab.rb
# gitlab_rails['registry_enabled'] = true
# gitlab_rails['registry_host'] = "registry.gitlab.example.com"
# gitlab_rails['registry_port'] = "5005"
# gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
# gitlab_rails['registry_notification_secret'] = nil
# gitlab_rails['registry_api_url'] = http://127.0.0.1:5000
# gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key"
# gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer"
$
and these registry['* parameters :
$ sudo grep 'registry\[' /etc/gitlab/gitlab.rb
# registry['enable'] = true
# registry['username'] = "registry"
# registry['group'] = "registry"
# registry['uid'] = nil
# registry['gid'] = nil
# registry['dir'] = "/var/opt/gitlab/registry"
# registry['registry_http_addr'] = "127.0.0.1:5000"
# registry['debug_addr'] = "localhost:5001"
# registry['log_directory'] = "/var/log/gitlab/registry"
# registry['env_directory'] = "/opt/gitlab/etc/registry/env"
# registry['env'] = {
# registry['log_level'] = "info"
# registry['log_formatter'] = "text"
# registry['rootcertbundle'] = "/var/opt/gitlab/registry/certificate.crt"
# registry['health_storagedriver_enabled'] = true
# registry['middleware'] = nil
# registry['storage_delete_enabled'] = true
# registry['validation_enabled'] = false
# registry['autoredirect'] = false
# registry['compatibility_schema1_enabled'] = false
# registry['database'] = nil
# registry['storage'] = {
# registry['database'] = {
# registry['gc'] = {
# registry['notifications'] = [
# registry['default_notifications_timeout'] = "500ms"
# registry['default_notifications_threshold'] = 5
# registry['default_notifications_maxretries'] = 5
# registry['default_notifications_backoff'] = "1s"
# registry['default_notifications_headers'] = {}
$
I'm confused between these two types of parameters.
I tried this configuration :
$ sudo nocomment /etc/gitlab/gitlab.rb | grep registry
registry_external_url 'https://registry.example.com'
gitlab_rails['registry_enabled'] = true
registry['enable'] = true
registry_nginx['enable'] = true
registry_nginx['listen_port'] = 5050
registry_nginx['ssl_certificate'] = "/etc/ssl/certs/wildcard.example.com-PEM.crt"
registry_nginx['ssl_certificate_key'] = "/etc/ssl/private/wildcard.example.com-PEM.key"
$
We have a haproxy front that forwards https://registry.example.com requests to registry.example.com:5050.
The docker push command in the .gitlab-ci.yml fails and when I try to browse to https://registry.example.com with firefox, nothing is shown.
Can you help me differentiate these parameters ?