From 2bbc7c715f8a95d6a9379e55eae59c483ca89c56 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 18 Sep 2020 12:42:36 +0100 Subject: [PATCH] Add GZIP compression to projects which don't natively support it --- ansible/roles/gitlab-pages/files/docker-compose.yml | 2 +- ansible/roles/grafana/files/docker-compose.yml | 1 + ansible/roles/home-assistant/files/docker-compose.yml | 1 + ansible/roles/intersect-docker/files/gotify/docker-compose.yml | 1 + .../roles/intersect-docker/files/jellyfin/docker-compose.yml | 1 + ansible/roles/intersect-docker/files/tt-rss/docker-compose.yml | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ansible/roles/gitlab-pages/files/docker-compose.yml b/ansible/roles/gitlab-pages/files/docker-compose.yml index 8e5c133..48a3ae3 100644 --- a/ansible/roles/gitlab-pages/files/docker-compose.yml +++ b/ansible/roles/gitlab-pages/files/docker-compose.yml @@ -28,7 +28,7 @@ services: - traefik.http.routers.gitlab-pages.tls.domains[0].sans=*.pages.theorangeone.net - traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.port=8080 - traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.scheme=http - - traefik.http.routers.plausible.middlewares=compress@file + - traefik.http.routers.gitlab-pages.middlewares=compress@file ssh-server: image: linuxserver/openssh-server:latest diff --git a/ansible/roles/grafana/files/docker-compose.yml b/ansible/roles/grafana/files/docker-compose.yml index 1698dbd..d27d4c5 100644 --- a/ansible/roles/grafana/files/docker-compose.yml +++ b/ansible/roles/grafana/files/docker-compose.yml @@ -21,6 +21,7 @@ services: - traefik.enable=true - traefik.http.routers.grafana.rule=Host(`grafana.jakehoward.tech`) - traefik.http.routers.grafana.tls.certresolver=le + - traefik.http.routers.grafana.middlewares=compress@file db: image: postgres:12-alpine diff --git a/ansible/roles/home-assistant/files/docker-compose.yml b/ansible/roles/home-assistant/files/docker-compose.yml index 410215b..96ada03 100644 --- a/ansible/roles/home-assistant/files/docker-compose.yml +++ b/ansible/roles/home-assistant/files/docker-compose.yml @@ -17,6 +17,7 @@ services: - traefik.http.routers.homeassistant.rule=Host(`homeassistant.jakehoward.tech`) - traefik.http.routers.homeassistant.tls.certresolver=le - traefik.http.services.home-assistant-homeassistant.loadbalancer.server.port=8123 + - traefik.http.routers.homeassistant.middlewares=compress@file influxdb: image: influxdb:1.8-alpine diff --git a/ansible/roles/intersect-docker/files/gotify/docker-compose.yml b/ansible/roles/intersect-docker/files/gotify/docker-compose.yml index 5136691..63884c6 100644 --- a/ansible/roles/intersect-docker/files/gotify/docker-compose.yml +++ b/ansible/roles/intersect-docker/files/gotify/docker-compose.yml @@ -11,3 +11,4 @@ services: - traefik.enable=true - traefik.http.routers.gotify.rule=Host(`gotify.jakehoward.tech`) - traefik.http.routers.gotify.tls.certresolver=le + - traefik.http.routers.gotify.middlewares=compress@file diff --git a/ansible/roles/intersect-docker/files/jellyfin/docker-compose.yml b/ansible/roles/intersect-docker/files/jellyfin/docker-compose.yml index 2b603b8..2270a2a 100644 --- a/ansible/roles/intersect-docker/files/jellyfin/docker-compose.yml +++ b/ansible/roles/intersect-docker/files/jellyfin/docker-compose.yml @@ -23,3 +23,4 @@ services: - traefik.enable=true - traefik.http.routers.jellyfin.rule=Host(`media.jakehoward.tech`) - traefik.http.routers.jellyfin.tls.certresolver=le + - traefik.http.routers.jellyfin.middlewares=compress@file diff --git a/ansible/roles/intersect-docker/files/tt-rss/docker-compose.yml b/ansible/roles/intersect-docker/files/tt-rss/docker-compose.yml index 3a06601..01a88ea 100644 --- a/ansible/roles/intersect-docker/files/tt-rss/docker-compose.yml +++ b/ansible/roles/intersect-docker/files/tt-rss/docker-compose.yml @@ -15,6 +15,7 @@ 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: