Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit cb999d2

Browse files
committed
PR #114 follow-up: Hide extra config if registry not enabled.
1 parent 5d8b964 commit cb999d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/gitlab.rb.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ nginx['ssl_client_certificate'] = "{{ gitlab_nginx_ssl_client_certificate }}"
8282

8383
# GitLab registry.
8484
registry['enable'] = {{ gitlab_registry_enable }}
85+
{% if gitlab_registry_enable %}
8586
registry_external_url "{{ gitlab_registry_external_url }}"
8687
registry_nginx['ssl_certificate'] = "{{ gitlab_registry_nginx_ssl_certificate }}"
8788
registry_nginx['ssl_certificate_key'] = "{{ gitlab_registry_nginx_ssl_certificate_key }}"
89+
{% endif %}
8890

8991
{% if gitlab_extra_settings is defined %}
9092
# Extra configuration

0 commit comments

Comments
 (0)