Apply gzip to everything

The middleware is smart enough to only apply it when needed, and only when it's not already compressed, so it's fine.
This commit is contained in:
Jake Howard 2021-09-19 22:48:48 +01:00
parent 83ed8879dc
commit 48934ad2c5
Signed by: jake
GPG Key ID: 57AFB45680EDD477
5 changed files with 2 additions and 5 deletions

View File

@ -13,7 +13,6 @@ services:
- traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`)
- traefik.http.services.plausible-plausible.loadbalancer.server.port=8000 # https://github.com/plausible/analytics/pull/237
- traefik.http.routers.plausible.tls.certresolver=le
- traefik.http.routers.plausible.middlewares=compress@file
- traefik.http.routers.plausible-bare.rule=Host(`elbisualp.theorangeone.net`)
- traefik.http.routers.plausible-bare.tls.certresolver=le
@ -22,7 +21,7 @@ services:
# https://github.com/plausible/analytics/pull/340
- traefik.http.middlewares.plausible-index.replacepathregex.regex=/js/index.js
- traefik.http.middlewares.plausible-index.replacepathregex.replacement=/js/plausible.js
- traefik.http.routers.plausible-bare.middlewares=compress@file,plausible-index
- traefik.http.routers.plausible-bare.middlewares=plausible-index
environment:
- SECRET_KEY_BASE={{ secret_key }}

View File

@ -13,4 +13,3 @@ services:
- traefik.enable=true
- traefik.http.routers.privatebin.rule=Host(`bin.theorangeone.net`)
- traefik.http.routers.privatebin.tls.certresolver=le
- traefik.http.routers.privatebin.middlewares=compress@file

View File

@ -23,7 +23,6 @@ services:
- traefik.enable=true
- traefik.http.routers.tt-rss.rule=Host(`tt-rss.jakehoward.tech`)
- traefik.http.routers.tt-rss.tls.certresolver=le
- traefik.http.routers.tt-rss.middlewares=compress@file
depends_on:
- db
tmpfs:

View File

@ -16,6 +16,7 @@ entryPoints:
http:
middlewares:
- floc-block@file
- compress@file
proxyProtocol:
trustedIPs:
- "{{ wireguard.cidr }}"

View File

@ -11,4 +11,3 @@ services:
- traefik.enable=true
- traefik.http.routers.uptime-kuma.rule=Host(`uptime.jakehoward.tech`)
- traefik.http.routers.uptime-kuma.tls.certresolver=le
- traefik.http.routers.uptime-kuma.middlewares=compress@file