Add an additional domain for matrix

I'll migrate over to this eventually. But doing a hard migration has just wasted my entire evening...
This commit is contained in:
Jake Howard 2022-02-13 20:54:46 +00:00
parent 722b964bc9
commit 6b63c2685b
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 10 additions and 2 deletions

View file

@ -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:

View file

@ -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"