Skip to content

Commit

Permalink
[FIX] Delete obsolete labels
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Jul 25, 2024
1 parent 1c132ce commit 3a2ade2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions _traefik2_hosts_labels.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,6 @@
}}
{%- else %}

{#- Forbidden crawler routers #}
{%- if paths_without_crawlers and not domain_group.path_prefixes %}
traefik.forbiddenCrawlers-{{ domain_group.loop.index0 }}.frontend.headers.customResponseHeaders:
"X-Robots-Tag:noindex, nofollow"
{{-
router(
prefix="forbiddenCrawlers",
index0=domain_group.loop.index0,
rule=domains_rule(domain_group.hosts, paths_without_crawlers),
entrypoints=domain_group.entrypoints,
)
}}
{%- endif %}

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

0 comments on commit 3a2ade2

Please sign in to comment.