Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.well-known support #7253

Closed
turt2live opened this issue Aug 31, 2018 · 9 comments
Closed

.well-known support #7253

turt2live opened this issue Aug 31, 2018 · 9 comments
Assignees

Comments

@turt2live
Copy link
Member

https://matrix.org/docs/spec/client_server/r0.4.0.html#server-discovery

@Tragen
Copy link

Tragen commented Sep 22, 2018

I would be very happy to see this soon. Currently we have our server running on
matrix.chat.domain.tld
and it would be great if we could use only
domain.tld

@aaronraimist
Copy link
Collaborator

@Tragen
Copy link

Tragen commented Oct 1, 2018

I have done this all and it's still not good. You cannot login with domain.tld with Riot. I need to login with matrix.chat.domain.tld and also the Matrix ID shown is wrong.

@t3chguy
Copy link
Member

t3chguy commented Oct 1, 2018

You'd need to reset your database. The matrix id domain is the one you configure synapse with when you install it, that combined with an SRV record to get federation working can achieve it.

@Tragen
Copy link

Tragen commented Oct 1, 2018

I have done that. I did a complete reset for synapse to use domain.tld but still Riot can only login with matrix.chat.domain.tld and shows the login id also with the wrong domain.

@djmaze
Copy link

djmaze commented Oct 1, 2018

@t3chguy That does not work because the browsers cannot resolve SRV records. (See #2682)

@mvgorcum
Copy link

mvgorcum commented Oct 1, 2018

@djmaze the 'wrong matrix ID' is indeed solvable with an SRV record, because the server part (after the ':') is only relevant for server to server connections, and those can resolve SRV records.

Clients, however, would still need to select 'custom server' and fill in the whole address of the server (so chat.domain.tld) though they can login with @user:domain.tld.

@Tragen
Copy link

Tragen commented Oct 2, 2018

And that's where the .well-known comes into place. Now the client can resolve the correct domain also.

@turt2live
Copy link
Member Author

Fixed by matrix-org/matrix-react-sdk#2227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants