Translations of this page:
  • en

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

Interesting projects

Moved to Matrix projects

Synpase maintenance tools

Show the public rooms on the server

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

https://spec.matrix.org/latest/client-server-api/#events-17

  • 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