content

I have matrix set up at matrix.tsuki.games, but I want the homeserver name to be tsuki.games.

However, this breaks federation as my matrix server url and my homeserver url do not match. According to matrix-docker-ansible-deploy#3466, suggests that this is because the federation works by looking for the .well-known pages at the homeserver name url. I also found this document, which suggests the same.

Apparently, all I need to do is either re-host the .well-known files at tsuki.games or a better option is to redirect .well-known queries at tsuki.games to matrix.tsuki.games.

Unfortunately, I use GitHub pages to serve the t/suki homepage, which apparently doesn't support 301s (at least, not to different subdomains), so my only option is to switch hosts to somewhere I can.

I chose to switch to nearly free speech and added this .htaccess file:

Redirect 301 /.well-known https://matrix.tsuki.games/.well-known

Checking federationtester.matrix.org, I can see that it works!

meta

created:

backlinks: t/suki logs

commit: 4abd4cbd