From b9f6dfc83faa59029bc630f8a743f6a05b8537c9 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Sun, 19 Jun 2022 11:45:50 +0200 Subject: [PATCH] Traefik: Compression Middleware Signed-off-by: Tobias Manske --- compose/03_nextcloud/docker-compose.yml | 3 ++- compose/03_search/docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compose/03_nextcloud/docker-compose.yml b/compose/03_nextcloud/docker-compose.yml index 5983810..efaa485 100644 --- a/compose/03_nextcloud/docker-compose.yml +++ b/compose/03_nextcloud/docker-compose.yml @@ -44,7 +44,8 @@ services: - "traefik.http.middlewares.nextcloud.headers.customresponseheaders.Strict-Transport-Security=max-age=15768000; includeSubDomains;" - "traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav" - "traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/" - - "traefik.http.routers.nextcloud.middlewares=nextcloud,nextcloud-dav" + - "traefik.http.middlewares.compression.compress=true" + - "traefik.http.routers.nextcloud.middlewares=nextcloud,nextcloud-dav,compression" - "com.centurylinklabs.watchtower.scope=update" volumes: diff --git a/compose/03_search/docker-compose.yml b/compose/03_search/docker-compose.yml index 3a60e24..e3bd51d 100644 --- a/compose/03_search/docker-compose.yml +++ b/compose/03_search/docker-compose.yml @@ -18,6 +18,8 @@ services: - "traefik.http.routers.searxng.rule=Host(`search.tobiasmanske.de`)" - "traefik.http.routers.searxng.entryPoints=websecure" - "traefik.http.services.searxng.loadbalancer.server.port=8080" + - "traefik.http.middlewares.compression.compress=true" + - "traefik.http.routers.searxng.middlewares=compression" - "com.centurylinklabs.watchtower.scope=update" redis: