From 9d70310e40bc91dcc7083e000e87b19ab02160ac Mon Sep 17 00:00:00 2001 From: 927589452 Date: Mon, 24 Jun 2019 20:46:42 +0200 Subject: [PATCH] included .well-known port announcement --- source/guide_synapse.rst | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/source/guide_synapse.rst b/source/guide_synapse.rst index adc2c6d0..31cee1fc 100644 --- a/source/guide_synapse.rst +++ b/source/guide_synapse.rst @@ -244,7 +244,12 @@ for ease of use we will make use of ``uberspace web backend`` and point it to 80 .. include:: includes/web-backend.rst -To enable federation as described _Matrix_Federation we need to announce it by setting a DNS record in the following format: +To enable federation as described _Matrix_Federation we need to announce it either via DNS or via .well-known. + +DNS announcement +---------------- + +The port can can be announced by setting a DNS record in the following format: .. code-block:: @@ -258,6 +263,20 @@ for example like this: .. note:: this can be checked by running ``dig -t srv _matrix._tcp.my.domain.name`` +.well-known announcement +------------------------ + +The federation port can also be announced via a file ``~/html/.well-known/matrix/server`` + +.. code-block:: json + { + "m.server": "my.domain.name:47741" + } + +This has to be made available under ``/.well-known/matrix`` via the web backend: + +.. include:: includes/web-backend.rst + Configure Certificates ----------------------