Matrix Synapse Miscellaneous

Different things, sometimes advanced and some things that just did not fit in the regular guide.

Matrix tips they don't tell you

https://wordsmith.social/cos/matrix-tips-they-dont-tell-you

Interesting projects

Moved to Matrix projects

Synpase maintenance tools

https://matrix-org.github.io/synapse/latest/usage/administration/database_maintenance_tools.html

Show the public rooms on the server

https://example.com/_matrix/client/r0/publicRooms

Coturn

Coturn is a turn server and it is used for 1:1 voip calls through the client (example: riot).

apt install coturn

Edit Config files

opening ports

Installing Bots

Matrix Synapse currently does not have a concept of bots, a bot is just a normal user. Usally there is a config and a .py file, download the files, unpack them and run the .py file. Running and downloading things via pip is not recommended.

Install python3

sudo apt install python3

then install pip

sudo apt install python3-pip

then matrix-bot-api from pyp

pip3 install matrix-bot-api

and finally fill out the config and start it

python3 pollbot.py

Exclude a server from a channel

Info von https://matrix.org/docs/guides/moderation#banning-servers-from-rooms-server-acls bzw. direkt https://spec.matrix.org/latest/client-server-api/#server-access-control-lists-acls-for-rooms

Chat /devtools

Send Custom Event

Rechts unten roten Button Event drücken

Event Type: m.room.server_acl

State Key: leer lassen

Event Content:

{
"allow": [
"*"
],
"allow_ip_literals": false,
"deny": [
"kiwifarms.net",
"*.kiwifarms.net",
"zygoat.club",
"*.zygoat.club"
]
}

Send

Bestätigung im Chat [CURRENT USER] set the server ACLs for this room.

Send custom reactions to messages (Powerlevel 1)

Chat /devtools

Send Custom Event

Event Type: m.reaction

Event Content:

{
"m.relates_to": {
"rel_type": "m.annotation",
"event_id": "$164569109460761pvPSY:matrix.org",
"key": "BOMP!"
}
}

Send custom reactions to messages (Powerlevel >=50)

Chat /devtools

Send Custom Event

Rechts unten roten Button Event drücken

Event Type: m.reaction

State Key: leer lassen

Event Content:

{
"m.relates_to": {
"rel_type": "m.annotation",
"event_id": "$164569109460761pvPSY:matrix.org",
"key": "BOMP!"
}
}

Send

Tombstone Event

Chat /devtools

Send Custom Event

Rechts unten roten Button Event drücken

Event Type: m.room.tombstone

State Key: leer lassen

Event Content:

{
"body": "This room has been replaced",
"replacement_room": "!ERZvriGbDxJDxaCBxX:matrix.org"
}

Send

Inactive room blocking address

IIRC you can request release of alias at support@matrix.org