Skip to content

Commit

Permalink
Redirect legacy replay.php to new java api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
p4block committed May 9, 2020
1 parent 6a6bcbb commit 9186b0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9186b0d

Please sign in to comment.