Fix synapse-admin URL

It no longer supports being run on a subdirectory with the stock container
This commit is contained in:
Jake Howard 2022-11-07 13:57:14 +00:00
parent b513858893
commit 77e83fec6d
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 9 additions and 4 deletions

View File

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

View File

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