From b1758f29f805c17612bcd7a4fa4e4a1045bcf456 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Thu, 9 Mar 2023 12:53:22 +0100 Subject: [PATCH] Matrix: Add Cinny webclient deployment --- .../templates/matrix/cinny-config.json | 12 ++++++++++++ .../templates/matrix/docker-compose.yaml | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 coreos-config/roles/compose_project/templates/matrix/cinny-config.json diff --git a/coreos-config/roles/compose_project/templates/matrix/cinny-config.json b/coreos-config/roles/compose_project/templates/matrix/cinny-config.json new file mode 100644 index 0000000..da32301 --- /dev/null +++ b/coreos-config/roles/compose_project/templates/matrix/cinny-config.json @@ -0,0 +1,12 @@ +{ + "defaultHomeserver": 0, + "homeserverList": [ + "unruhig.eu", + "entropia.de", + "matrix.org", + "archlinux.org", + "kit.edu", + "mozilla.org" + ], + "allowCustomHomeservers": true +} diff --git a/coreos-config/roles/compose_project/templates/matrix/docker-compose.yaml b/coreos-config/roles/compose_project/templates/matrix/docker-compose.yaml index f0725ee..97686ff 100644 --- a/coreos-config/roles/compose_project/templates/matrix/docker-compose.yaml +++ b/coreos-config/roles/compose_project/templates/matrix/docker-compose.yaml @@ -89,6 +89,20 @@ services: - gateway - default + cinny: + image: ghcr.io/cinnyapp/cinny:latest + restart: unless-stopped + labels: + - "traefik.enable=true" + - "traefik.http.routers.matrix-cinny.rule=Host(`cinny.{{ matrix.baseurl }}`)" + - "traefik.http.routers.matrix-cinny.entryPoints=websecure" + - "traefik.http.services.matrix-cinny.loadbalancer.server.port=80" + volumes: + - ./cinny-config.json:/app/config.json:ro,Z + networks: + - gateway + - default + redis: image: redis:latest restart: unless-stopped