From ee305ad2dad9a5082f7451c2253e23a9498be8d7 Mon Sep 17 00:00:00 2001 From: Pablo Esteban Date: Mon, 16 Oct 2023 13:05:53 +0200 Subject: [PATCH] [FIX] _traefik2_labels.yml.jinja: use Path instead of PathPrefix for odoo >= 16 --- _traefik2_labels.yml.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_traefik2_labels.yml.jinja b/_traefik2_labels.yml.jinja index 94621e7e..bcd6ce0e 100644 --- a/_traefik2_labels.yml.jinja +++ b/_traefik2_labels.yml.jinja @@ -154,13 +154,13 @@ {#- Longpolling router #} {%- if not domain_group.path_prefixes %} - {%- set longpolling_route = "/longpolling/" if odoo_version < 16 else "/websocket" -%} + {%- set longpolling_route = "PathPrefix(`/longpolling/`)" if odoo_version < 16 else "Path(`/websocket`)" -%} {{- router( domain_group=domain_group, key=key, suffix="longpolling", - rule="%s && PathPrefix(`%s`)" % (domains_rule(domain_group), longpolling_route), + rule="%s && %s" % (domains_rule(domain_group), longpolling_route), service="longpolling", middlewares=_ns.basic_middlewares, )