From 391e10a8f1628724f9117ff33b1d970c0373654e Mon Sep 17 00:00:00 2001 From: "tom.chivert" Date: Thu, 13 Jun 2024 15:08:37 +0200 Subject: [PATCH] Smol condition fix --- templates/compose/gitlab.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/gitlab.yml.j2 b/templates/compose/gitlab.yml.j2 index 845f4a9..8c9f4c8 100644 --- a/templates/compose/gitlab.yml.j2 +++ b/templates/compose/gitlab.yml.j2 @@ -22,7 +22,7 @@ services: container_name: gitlab restart: 'unless-stopped' labels: -{% if gitlab_through_traefik == "true" %} +{% if gitlab_through_traefik is defined and gitlab_through_traefik %} traefik.enable: "true" {% if gitlab_headers_accesscontrolallowcredentials is defined %} traefik.http.middlewares.gitlab.headers.accesscontrolallowcredentials: "{{ gitlab_headers_accesscontrolallowcredentials }}"