From bf99dbc474a7100832fa392172993e5bc8646909 Mon Sep 17 00:00:00 2001 From: val Date: Sun, 8 Jun 2025 14:27:12 +0200 Subject: [PATCH] added option for matrix-synapse redirection --- .env.sample | 7 ++++++- compose.matrix.yml | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 compose.matrix.yml diff --git a/.env.sample b/.env.sample index 6237de2..3f26677 100644 --- a/.env.sample +++ b/.env.sample @@ -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 \ No newline at end of file +#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 \ No newline at end of file diff --git a/compose.matrix.yml b/compose.matrix.yml new file mode 100644 index 0000000..3f5da8e --- /dev/null +++ b/compose.matrix.yml @@ -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" \ No newline at end of file