added option for matrix-synapse redirection
This commit is contained in:
@ -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
8
compose.matrix.yml
Normal 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"
|
||||
Reference in New Issue
Block a user