From 2b8f7dd7207f7ed3693dbf2b2b443a8852f0fd5d Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 11 Nov 2022 15:45:24 +0100 Subject: [PATCH] Synapse: Configure Traefik --- container/matrix/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/container/matrix/default.nix b/container/matrix/default.nix index e0c2885..9742514 100644 --- a/container/matrix/default.nix +++ b/container/matrix/default.nix @@ -14,6 +14,15 @@ in "/etc/container-matrix/synapse:/data" ]; labels = { + "traefik.enable" = "true"; + "traefik.http.routers.matrix.rule" = "Host(`matrix.kempkens.io`)"; + "traefik.http.routers.matrix.entrypoints" = "websecure"; + "traefik.http.routers.matrix.service" = "matrix-web"; + "traefik.http.routers.matrix.tls.certresolver" = "cfresolver"; + "traefik.http.routers.matrix.tls.domains[0].main" = "kempkens.io"; + "traefik.http.routers.matrix.tls.domains[0].sans" = "*.kempkens.io"; + "traefik.http.routers.matrix.middlewares" = "content-compression@file"; + "traefik.http.services.matrix-web.loadbalancer.server.port" = "8008"; "com.centurylinklabs.watchtower.enable" = "true"; }; };