grafana - remove error in jinja templating #5

Merged
ludal merged 1 commits from grafana-whitelist into master 2024-02-20 15:48:38 +01:00

View File

@ -70,7 +70,7 @@ services:
{% if grafana_traefik_ipwhitelist is defined %} {% if grafana_traefik_ipwhitelist is defined %}
traefik.http.middlewares.grafana-clientips.ipwhitelist.sourcerange: {{ grafana_traefik_ipwhitelist }} traefik.http.middlewares.grafana-clientips.ipwhitelist.sourcerange: {{ grafana_traefik_ipwhitelist }}
traefik.http.routers.grafana.middlewares: "grafana-clientips@docker" traefik.http.routers.grafana.middlewares: "grafana-clientips@docker"
{% else %} {% endif %}
ports: ports:
- "{{ grafana_port | default(3000) }}:3000" - "{{ grafana_port | default(3000) }}:3000"
{% endif %} {% endif %}
@ -103,7 +103,7 @@ services:
{% if prometheus_traefik_ipwhitelist is defined %} {% if prometheus_traefik_ipwhitelist is defined %}
traefik.http.middlewares.prometheus-clientips.ipwhitelist.sourcerange: {{ prometheus_traefik_ipwhitelist }} traefik.http.middlewares.prometheus-clientips.ipwhitelist.sourcerange: {{ prometheus_traefik_ipwhitelist }}
traefik.http.routers.prometheus.middlewares: "prometheus-clientips@docker" traefik.http.routers.prometheus.middlewares: "prometheus-clientips@docker"
{% else %} {% endif %}
ports: ports:
- "{{ prometheus_port | default(9090) }}:9090" - "{{ prometheus_port | default(9090) }}:9090"
{% endif %} {% endif %}