From 3b67239ea3cfe2bfe6dbbfbc561e673b84c2b178 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sat, 13 Nov 2021 23:43:30 +0100 Subject: [PATCH] feat: error pages See https://git.coopcloud.tech/coop-cloud/organising/issues/115#issuecomment-10320. --- compose.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/compose.yml b/compose.yml index 054d09d..db92802 100644 --- a/compose.yml +++ b/compose.yml @@ -49,6 +49,23 @@ services: - "traefik.http.routers.traefik.middlewares=security@file" - "coop-cloud.${STACK_NAME}.version=1.0.0+v2.5.2" + web: + image: tarampampam/error-pages:2.2.0 + environment: + - TEMPLATE_NAME=shuffle + networks: + - proxy + labels: + - "traefik.enable=true" + - "traefik.http.services.error-pages-service.loadbalancer.server.port=8080" + - "traefik.http.routers.error-router.entrypoints=web-secure" + - "traefik.http.routers.error-router.rule=HostRegexp(`${DOMAIN}`)" + - "traefik.http.routers.error-router.priority=10" + - "traefik.http.routers.error-router.middlewares=error-pages-middleware@docker" + - "traefik.http.middlewares.error-pages-middleware.errors.status=400-599" + - "traefik.http.middlewares.error-pages-middleware.errors.service=error-pages-service@docker" + - "traefik.http.middlewares.error-pages-middleware.errors.query=/{status}.html" + networks: proxy: external: true