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 333ef9b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 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 All @@ -76,18 +62,6 @@
)
}}
{%- endif %}
{%- if not domain_group.path_prefixes %}
{%- set longpolling_route = "/longpolling/" if odoo_version < 16 else "/websocket" -%}
{{-
router(
prefix="longpolling",
index0=domain_group.loop.index0,
rule=domains_rule(domain_group.hosts, [longpolling_route]),
entrypoints=domain_group.entrypoints,
port=8072,
)
}}
{%- endif %}
{%- endif %}
{%- endcall %}
{%- endmacro %}

0 comments on commit 333ef9b

Please sign in to comment.