Skip to content

Commit

Permalink
[FIX] Without forbidden crawlers
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Jul 23, 2024
1 parent 4c33dd2 commit 37d457d
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 37d457d

Please sign in to comment.