Skip to content

Commit

Permalink
[FIX] _traefik2_labels.yml.jinja: use Path instead of PathPrefix for …
Browse files Browse the repository at this point in the history
…odoo >= 16
  • Loading branch information
PabloEForgeFlow committed Oct 16, 2023
1 parent 5b26fca commit ee305ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _traefik2_labels.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit ee305ad

Please sign in to comment.