add SERVE_SERVER_WELLKNOWN variable

This config allows matrix-synapse to create a endpoint on
$DOMAIN/.well-known/matrix/server used for federation.
It's a straight forward way (no port opening required)
to enable federation if you are okay having a subdomain
(matrix.example.org) as your homeserver address.
This commit is contained in:
Philipp Rothmann 2022-04-06 12:57:41 +02:00
parent 005ce43f61
commit c542629264
3 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,9 @@ COMPOSE_FILE="compose.yml"
#DISABLE_FEDERATION=1
# Set "true" to enable federation endpoint on $DOMAIN/.well-known/matrix/server
SERVE_SERVER_WELLKNOWN=false
ENABLE_REGISTRATION=false
PASSWORD_LOGIN_ENABLED=true

View File

@ -25,6 +25,7 @@ services:
- PASSWORD_LOGIN_ENABLED
- REDACTION_RETENTION_PERIOD
- ROOT_LOG_LEVEL
- SERVE_SERVER_WELLKNOWN
- SQL_LOG_LEVEL
- STACK_NAME
- SYNAPSE_ADMIN_EMAIL

View File

@ -85,7 +85,7 @@ public_baseurl: https://{{ env "DOMAIN" }}/
#
# Defaults to 'false'.
#
#serve_server_wellknown: true
serve_server_wellknown: {{ env "SERVE_SERVER_WELLKNOWN" }}
# Set the soft limit on the number of file descriptors synapse can use
# Zero is used to indicate synapse should set the soft limit to the