hscloud/app/matrix/wellknown
q3k ec7e0a9dc2 app/matrix: add wellknown server
This is in preparation for spinning up a staging/QA matrix instance,
where the MXID domain is under control by hscloud machinery (and not a
top-level organizational domain).

Change-Id: I10505615ebb407b3b2eac0c1b87ad5625e2009c0
2020-11-05 20:47:04 +01:00
..
BUILD app/matrix: add wellknown server 2020-11-05 20:47:04 +01:00
README.me app/matrix: add wellknown server 2020-11-05 20:47:04 +01:00
main.go app/matrix: add wellknown server 2020-11-05 20:47:04 +01:00
server_test.go app/matrix: add wellknown server 2020-11-05 20:47:04 +01:00

README.me

matrix well-known server
========================

This is a small service that runs alongside a Matrix Synapse in order to direct traffic to it via .well-known/matrix/*.

We currently satisfy two URLs formats:

 - .well-known/matrix/client: [as per the client-server spec](https://matrix.org/docs/spec/client_server/latest#well-known-uri), ie. m.homeserver set.
 - .well-known/matrix/server: [as per the federation spec](https://matrix.org/docs/spec/server_server/latest#get-well-known-matrix-server), ie. m.server set

Usage
-----

This is automatically ran as part of the kubernetes machinery for Synapse. See //app/matrix/lib/matrix.libsonnet for more information.