From 9186b0d8dbd8f384b45c0186437f074273ee798c Mon Sep 17 00:00:00 2001 From: Pablo <42.pablo.ms@gmail.com> Date: Sat, 9 May 2020 18:38:18 +0200 Subject: [PATCH] Redirect legacy replay.php to new java api endpoint --- docker-compose.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e17baaea..6ea8b9a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -524,9 +524,11 @@ services: - "traefik.http.routers.faf-content.rule=Host(`content.${DOMAINNAME}`) || Host(`replay.${DOMAINNAME}`)" - "traefik.http.routers.faf-content.entryPoints=web-secure" - "traefik.http.routers.faf-content.tls.certresolver=default" - - "traefik.http.routers.faf-content.middlewares=faf-content-regex, test-compress@file" - - "traefik.http.middlewares.faf-content-regex.redirectregex.regex=^(http|https)://replay.${DOMAINNAME}/(.*)" - - "traefik.http.middlewares.faf-content-regex.redirectregex.replacement=$${1}://content.${DOMAINNAME}/faf/vault/replay_vault/replay.php?id=$${2}" + - "traefik.http.routers.faf-content.middlewares=redirect-replay-subdomain, redirect-replay-php, test-compress@file" + - "traefik.http.middlewares.redirect-replay-subdomain.redirectregex.regex=^(http|https)://replay.${DOMAINNAME}/(.*)" + - "traefik.http.middlewares.redirect-replay-subdomain.redirectregex.replacement=$${1}://api.${DOMAINNAME}/game/$${2}/replay" + - "traefik.http.middlewares.redirect-replay-php.redirectregex.regex=^(http|https)://content.${DOMAINNAME}/faf/vault/replay_vault/replay.php\\?id=(.*)" + - "traefik.http.middlewares.redirect-replay-php.redirectregex.replacement=$${1}://api.${DOMAINNAME}/game/$${2}/replay" logging: driver: "json-file" options: