meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
digital:server:matrixsynapsemisc [2018/11/06 16:46]
natrius created
digital:server:matrixsynapsemisc [2022/05/18 13:08] (current)
natrius [Tombstone Event]
Line 3: Line 3:
 Different things, sometimes advanced and some things that just did not fit in the regular guide.  Different things, sometimes advanced and some things that just did not fit in the regular guide. 
  
-## Optional Adminshell+## Matrix tips they don't tell you 
 +https://wordsmith.social/cos/matrix-tips-they-dont-tell-you
  
-If you forgot to write ''sudo'' and don't want to rewrite the whole command, just type ''sudo !!'' to execute the last command with sudo rights.+## Interesting projects
  
-There is another way but you should **not** work like that all the time because its not secure. There is a reason you have to write ''sudo'' for a lot of commands. For an initial server setup you may have to type a lot of commands, to avoid typing ''sudo *'' all the time, it is possible to type in ''sudo su''. This opens a admin-shell and you should be able to work without typing ''sudo'' in. Keep in mind, ''exit'' after step 8 and don't use ''sudo su'' when you just have to type in some commands.+Moved to [[digital:server:matrixprojects|Matrix projects]]
  
 ## Synpase maintenance tools ## Synpase maintenance tools
  
-https://github.com/matrix-org/synapse/wiki/Synapse-database-maintenance-tools+https://matrix-org.github.io/synapse/latest/usage/administration/database_maintenance_tools.html
  
-## Change listener port+## Show the public rooms on the server
  
-Now check if the HTTP and HTTPS listener port '8008and '8448' are bound to the local IP address ''0.0.0.0'' (and not to ''127.0.0.1''.+''https://example.com/_matrix/client/r0/publicRooms''
  
-<code>sudo nano /etc/matrix-synapse/homeserver.yaml</code>+## Coturn
  
-<code> +Coturn is a turn server and it is used for 1:1 voip calls through the client (exampleriot).
-    port8448 +
-    bind_addresses: +
-      - '0.0.0.0'+
  
-    - port: 8008 +<code>apt install coturn</code> 
-    bind_addresses: ['127.0.0.1'+ 
-</code>+Edit Config files 
 + 
 +opening ports
  
 ## Installing Bots ## Installing Bots
Line 47: Line 47:
  
 <code>python3 pollbot.py</code> <code>python3 pollbot.py</code>
 +
 +## 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
 +
 +