From a356352db4928d48458b6fd169e779915bc28417 Mon Sep 17 00:00:00 2001 From: Ludwig Behm Date: Tue, 16 Mar 2021 20:33:37 +0100 Subject: [PATCH] Added redirect to default map if none is provided --- docker-compose.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 83c446f0..73e674a0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -51,6 +51,10 @@ services: - "traefik.http.routers.front-ssl.service=front" - "traefik.http.routers.front-ssl.tls.certresolver=le" - "traefik.http.routers.front-ssl.tls.domains[0].main=play.kraut.world" + # redirect default map + - "traefik.http.middlewares.default-redirect.redirectregex.regex=^https://play.kraut.world/$$" + - "traefik.http.middlewares.default-redirect.redirectregex.replacement=https://play.kraut.world/_/global/raw.githubusercontent.com/die3ungleichen/2D-Welt-thueringen/main/main.json" + - "traefik.http.routers.front-ssl.middlewares=default-redirect" pusher: image: thecodingmachine/nodejs:12