Skip to content

Commit

Permalink
Merge pull request Tecnativa#483 from Tecnativa/fix-path-without-craw…
Browse files Browse the repository at this point in the history
…lers

[FIX] Without forbidden crawlers
  • Loading branch information
pedrobaeza authored Jul 24, 2024
2 parents 4c33dd2 + 37d457d commit 1c132ce
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions _traefik3_labels.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -67,7 +66,6 @@
)
}}
{%- endif %}
{%- endif %}

{#- Normal routers #}
{%- if paths_without_crawlers != ["/"] or domain_group.path_prefixes %}
Expand Down

0 comments on commit 1c132ce

Please sign in to comment.