Federation via SERVE_SERVER_WELLKNOWN #27

Merged
decentral1se merged 2 commits from serve_server_wellknown into main 2022-04-06 16:04:37 +00:00
Owner

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 solution work's for me (federation tester is happy and some manual testing). But is it reasonable to use this method or does it make more sense to integrate the ruangrupa solution into this recipe?

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 solution work's for me (federation tester is happy and some manual testing). But is it reasonable to use this method or does it make more sense to integrate the [ruangrupa solution](https://git.autonomic.zone/ruangrupa/well-known-uris) into this recipe?
yksflip added 1 commit 2022-04-06 11:08:03 +00:00
c542629264 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.
decentral1se reviewed 2022-04-06 12:57:24 +00:00
decentral1se left a comment
Owner

nice @yksflip! and you don't have to open up the port? I'm a bit confused that you don't have to do that... but if you are sure it is then federating for you then this is pretty great! Small change 😄

nice @yksflip! and you don't have to open up the port? I'm a bit confused that you don't have to do that... but if you are sure it is then federating for you then this is pretty great! Small change 😄
@ -86,3 +86,3 @@
# Defaults to 'false'.
#
#serve_server_wellknown: true
serve_server_wellknown: {{ env "SERVE_SERVER_WELLKNOWN" }}
Owner

you'll need to bump the config version in the abra.sh also

you'll need to bump the config version in the `abra.sh` also
yksflip marked this conversation as resolved
Author
Owner

yes! If you don't want to expose an extra port synapse supports delegation either by srv-dns record or like here with .well-known file. Other Matrix server then know to use 443 instead of federation port.

It's more tricky if you want to use the tld as matrix handle but also want to run matrix on a subdomain. Then you'd need smth like the ruangrupa setup.

yes! If you don't want to expose an extra port synapse supports [delegation](https://matrix-org.github.io/synapse/latest/delegate.html) either by srv-dns record or like here with .well-known file. Other Matrix server then know to use 443 instead of federation port. It's more tricky if you want to use the tld as matrix handle but also want to run matrix on a subdomain. Then you'd need smth like the ruangrupa setup.
yksflip added 1 commit 2022-04-06 15:31:37 +00:00
decentral1se merged commit 0378e8d89f into main 2022-04-06 16:04:37 +00:00
Owner

Thanks! you can deploy -C for now I guess? We can make a release soon.

Thanks! you can `deploy -C` for now I guess? We can make a release soon.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/matrix-synapse#27
No description provided.