From 77e83fec6d9bc3253ae81aae22a71f2f62567218 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 7 Nov 2022 13:57:14 +0000 Subject: [PATCH] Fix synapse-admin URL It no longer supports being run on a subdirectory with the stock container --- ansible/roles/pve_docker/files/synapse/docker-compose.yml | 6 ++---- terraform/jakehoward.tech.tf | 7 +++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ansible/roles/pve_docker/files/synapse/docker-compose.yml b/ansible/roles/pve_docker/files/synapse/docker-compose.yml index 707a5b2..aae5024 100644 --- a/ansible/roles/pve_docker/files/synapse/docker-compose.yml +++ b/ansible/roles/pve_docker/files/synapse/docker-compose.yml @@ -19,7 +19,7 @@ services: - db labels: - traefik.enable=true - - traefik.http.routers.synapse.rule=Host(`matrix.jakehoward.tech`) || Host(`matrix.theorangeone.net`) + - traefik.http.routers.synapse.rule=Host(`matrix.jakehoward.tech`) networks: - default - traefik @@ -45,9 +45,7 @@ services: restart: unless-stopped labels: - traefik.enable=true - - traefik.http.routers.synapse-admin.rule=Host(`matrix.theorangeone.net`) && PathPrefix(`/admin`) - - traefik.http.middlewares.synapse-admin-path.stripprefix.prefixes=/admin - - traefik.http.routers.synapse-admin.middlewares=synapse-admin-path@docker + - traefik.http.routers.synapse-admin.rule=Host(`synapse-admin.jakehoward.tech`) networks: - default - traefik diff --git a/terraform/jakehoward.tech.tf b/terraform/jakehoward.tech.tf index ebb30ed..0cfd217 100644 --- a/terraform/jakehoward.tech.tf +++ b/terraform/jakehoward.tech.tf @@ -195,3 +195,10 @@ resource "cloudflare_record" "jakehowardtech_slides" { type = "CNAME" ttl = 1 } +resource "cloudflare_record" "jakehowardtech_matrix_admin" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "synapse-admin" + value = linode_instance.casey.ip_address + type = "A" + ttl = 1 +}