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 - db
labels: labels:
- traefik.enable=true - 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: networks:
- default - default
- traefik - traefik
@ -45,9 +45,7 @@ services:
restart: unless-stopped restart: unless-stopped
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.synapse-admin.rule=Host(`matrix.theorangeone.net`) && PathPrefix(`/admin`) - traefik.http.routers.synapse-admin.rule=Host(`synapse-admin.jakehoward.tech`)
- traefik.http.middlewares.synapse-admin-path.stripprefix.prefixes=/admin
- traefik.http.routers.synapse-admin.middlewares=synapse-admin-path@docker
networks: networks:
- default - default
- traefik - traefik

View file

@ -195,3 +195,10 @@ resource "cloudflare_record" "jakehowardtech_slides" {
type = "CNAME" type = "CNAME"
ttl = 1 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
}