Skip to content

fix: serve Matrix discovery on the bare domain - #8

Open
benjamsf wants to merge 2 commits into
mainfrom
fix/matrix-well-known
Open

benjamsf wants to merge 2 commits into
mainfrom
fix/matrix-well-known

Conversation

@benjamsf

Copy link
Copy Markdown
Member

Description

The bare domain answered /.well-known/matrix/client with the Deploy App page, so Matrix clients (ODMatrix, Element X) could not find the homeserver. That one path now goes to Synapse. Checked with nginx -t and requests against a stub Synapse.

User-Facing Changes

Matrix apps find the server

Matrix apps can sign in with the deployment's own address.

Anything Else You'd Like to Mention

Please merge with a merge commit: the integration change will pin this branch. The version bump conflicts trivially with #7.

User IDs end in the deployment's host, so Matrix clients ask
https://<host>/.well-known/matrix/client where the homeserver is.
The bare-domain server answered with the Deploy App's index.html,
and clients failed discovery: ODMatrix with "No Matrix sign-in found",
Element X and others when given the server name.

Proxy that one path to Synapse at a fixed upstream URI, in both
templates. Synapse answers with its public URL, MAS and CORS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant