Skip to content

Synapse

Well-known DNS entry:

❯ curl -L https://varac.net/.well-known/matrix/server
{
  "m.server": "matrix.oas.varac.net:443"
}

Test server from outside using the federation tester

User management

Synapse admin ui

Register new user:

Regsister user or, much easier, from within the synapse pod:

export PW=...
register_new_matrix_user -c /config/homeserver.yaml -u varac -p $PW -a http://localhost:8008

or in kubernetes:

kc -n matrix exec deploy/synapse -c synapse -- \
  register_new_matrix_user -u varac -a -c /config/homeserver.yaml \
  -p $(gopass show --password im/matrix/varac.net/varac/password) http://synapse:8443

Maintenance

Issues

synapse-postgresql pod

Troubleshooting

Federation

Get psql shell in synapse-postgres pod

kc view-secret -n matrix synapse-postgresql
psql postgres -h 127.0.0.1 -d synapse
  select max(stream_ordering) from events;
  select * from appservice_stream_position;