GZIP plausible traffic

Plausible doesn't gzip for itself. Funnily enough the tracker is actually too small to be compressed by Traefik!
This commit is contained in:
Jake Howard 2020-07-22 12:18:49 +01:00
parent 9ee4e1c14b
commit 3c7c0ec3fa
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@ services:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`) - traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`)
- traefik.http.routers.plausible.tls.certresolver=le - traefik.http.routers.plausible.tls.certresolver=le
- traefik.http.routers.plausible.middlewares=compress@file
environment: environment:
- PORT=8080 - PORT=8080
- SECRET_KEY_BASE={{ secret_key }} - SECRET_KEY_BASE={{ secret_key }}

View file

@ -3,6 +3,8 @@ http:
tls-redirect: tls-redirect:
redirectScheme: redirectScheme:
scheme: https scheme: https
compress:
compress: {}
routers: routers:
tls-redirect: tls-redirect: