From 37d457ddbfdea980d88c830aedaf342485c2a436 Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Tue, 23 Jul 2024 12:01:26 +0200 Subject: [PATCH] [FIX] Without forbidden crawlers --- _traefik3_labels.yml.jinja | 2 -- 1 file changed, 2 deletions(-) diff --git a/_traefik3_labels.yml.jinja b/_traefik3_labels.yml.jinja index b4b53f8c..74f2092b 100644 --- a/_traefik3_labels.yml.jinja +++ b/_traefik3_labels.yml.jinja @@ -54,7 +54,6 @@ {%- else %} {#- Forbidden crawler routers #} - {%- if traefik_version < 3%} {%- if paths_without_crawlers and not domain_group.path_prefixes %} traefik.forbiddenCrawlers-{{ domain_group.loop.index0 }}.frontend.headers.customResponseHeaders: "X-Robots-Tag:noindex, nofollow" @@ -67,7 +66,6 @@ ) }} {%- endif %} - {%- endif %} {#- Normal routers #} {%- if paths_without_crawlers != ["/"] or domain_group.path_prefixes %}