From 6b63c2685b5719b344bce4197035d7eea0b1fe28 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 13 Feb 2022 20:54:46 +0000 Subject: [PATCH] Add an additional domain for matrix I'll migrate over to this eventually. But doing a hard migration has just wasted my entire evening... --- ansible/roles/pve_docker/files/synapse/docker-compose.yml | 4 ++-- terraform/theorangeone.net.tf | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ansible/roles/pve_docker/files/synapse/docker-compose.yml b/ansible/roles/pve_docker/files/synapse/docker-compose.yml index 54a5653..49f0bc7 100644 --- a/ansible/roles/pve_docker/files/synapse/docker-compose.yml +++ b/ansible/roles/pve_docker/files/synapse/docker-compose.yml @@ -17,7 +17,7 @@ services: - db labels: - traefik.enable=true - - traefik.http.routers.synapse.rule=Host(`matrix.jakehoward.tech`) + - traefik.http.routers.synapse.rule=Host(`matrix.jakehoward.tech`) || Host(`matrix.theorangeone.net`) networks: - default - traefik @@ -43,7 +43,7 @@ services: restart: unless-stopped labels: - traefik.enable=true - - traefik.http.routers.synapse-admin.rule=Host(`matrix.jakehoward.tech`) && PathPrefix(`/admin`) + - 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 networks: diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index aded068..4a386b4 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -101,6 +101,14 @@ resource "cloudflare_record" "theorangeonenet_img" { ttl = 1 } +resource "cloudflare_record" "theorangeonenet_matrix" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "matrix" + value = linode_instance.casey.ip_address + type = "A" + ttl = 1 +} + resource "cloudflare_record" "theorangeonenet_dl" { zone_id = cloudflare_zone.theorangeonenet.id name = "dl"