diff --git a/apps-dfc2/anyway/compose.yaml b/apps-dfc2/anyway/compose.yaml index d077d57..a71326e 100644 --- a/apps-dfc2/anyway/compose.yaml +++ b/apps-dfc2/anyway/compose.yaml @@ -155,6 +155,11 @@ services: - "traefik.http.routers.anyway-www.tls=true" - "traefik.http.routers.anyway-www.tls.certresolver=dfc" - "traefik.http.routers.anyway-www.middlewares=anyway-www-to-apex" + - "traefik.http.routers.anyway-www-api.rule=Host(`www.anyway.co.il`) && (PathPrefix(`/api/`) || PathPrefix(`/authorize/`) || PathPrefix(`/callback/`) || PathPrefix(`/user/`) || Path(`/logout`))" + - "traefik.http.routers.anyway-www-api.priority=100" + - "traefik.http.routers.anyway-www-api.service=anyway-nginx" + - "traefik.http.routers.anyway-www-api.tls=true" + - "traefik.http.routers.anyway-www-api.tls.certresolver=dfc" - "traefik.http.middlewares.anyway-www-to-apex.redirectregex.regex=^https://www[.]anyway[.]co[.]il(/.*)$" - "traefik.http.middlewares.anyway-www-to-apex.redirectregex.replacement=https://anyway.co.il$${1}" - "traefik.http.middlewares.anyway-www-to-apex.redirectregex.permanent=true"