added option for matrix-synapse redirection

This commit is contained in:
val
2025-06-08 14:27:12 +02:00
parent b4a0143cc5
commit bf99dbc474
2 changed files with 14 additions and 1 deletions

View File

@ -13,4 +13,9 @@ LETS_ENCRYPT_ENV=production
#MAIL_OPTIONS_PORT=587
#MAIL_OPTIONS_SECURE=false
#MAIL_OPTIONS_AUTH_USER=smtpuser@example.com
#MAIL_OPTIONS_AUTH_PASS=XXXX
#MAIL_OPTIONS_AUTH_PASS=XXXX
## Matrix-Synapse-Redirection
# If you want to use Ghost on a TLD which you want to use as matrix server name as well
# COMPOSE_FILE="$COMPOSE_FILE:compose.matrix.yml"
# MATRIX_DOMAIN=matrix-synapse.example.com

8
compose.matrix.yml Normal file
View File

@ -0,0 +1,8 @@
version: "3.8"
services:
app:
deploy:
labels:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect-matrix-well-known"
- "traefik.http.middlewares.${STACK_NAME}-redirect-matrix-well-known.redirectregex.regex=^https://(.*)/.well-known/matrix/(.*)"
- "traefik.http.middlewares.${STACK_NAME}-redirect-matrix-well-known.redirectregex.replacement=https://${MATRIX_DOMAIN}/.well-known/matrix/$$2"