From 3c7c0ec3fa768ba2239267d76c0d61ce3147fed6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 22 Jul 2020 12:18:49 +0100 Subject: [PATCH] GZIP plausible traffic Plausible doesn't gzip for itself. Funnily enough the tracker is actually too small to be compressed by Traefik! --- ansible/roles/plausible/files/docker-compose.yml | 1 + ansible/roles/traefik/files/file-provider.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ansible/roles/plausible/files/docker-compose.yml b/ansible/roles/plausible/files/docker-compose.yml index 86ab9cc..6deb61f 100644 --- a/ansible/roles/plausible/files/docker-compose.yml +++ b/ansible/roles/plausible/files/docker-compose.yml @@ -12,6 +12,7 @@ services: - traefik.enable=true - traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`) - traefik.http.routers.plausible.tls.certresolver=le + - traefik.http.routers.plausible.middlewares=compress@file environment: - PORT=8080 - SECRET_KEY_BASE={{ secret_key }} diff --git a/ansible/roles/traefik/files/file-provider.yml b/ansible/roles/traefik/files/file-provider.yml index 247f1be..d29f6ad 100644 --- a/ansible/roles/traefik/files/file-provider.yml +++ b/ansible/roles/traefik/files/file-provider.yml @@ -3,6 +3,8 @@ http: tls-redirect: redirectScheme: scheme: https + compress: + compress: {} routers: tls-redirect: