Merge pull request 'grafana - remove error in jinja templating' (#5) from grafana-whitelist into master

Reviewed-on: #5
This commit is contained in:
Ludovic Cartier 2024-02-20 15:48:37 +01:00
commit aca249b5c2

View File

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