!qJjlVpSRJEWzyTmhoh:perthchat.org

PC-Admin's Synapse Setup Guide

221 Members
Support room for: https://github.com/PC-Admin/PC-Admins-Synapse-Setup-Guide - WARNING: The author of this guide has moved onto the Ansible approach, i would strongly recommend using: https://github.com/spantaleev/matrix-docker-ansible-deploy - For general questions about Synapse try #synapse:matrix.org75 Servers

Load older messages


SenderMessageTime
12 Dec 2023
@PC-Admin:matrix.org@PC-Admin:matrix.orgchanged room power levels.03:29:14
@PC-Admin:matrix.org@PC-Admin:matrix.orgchanged room power levels.03:29:19
@PC-Admin:matrix.org@PC-Admin:matrix.org
In reply to @wh1:matrix.org
what is the enterprise server suite?
come again?
03:29:28
@wh1:matrix.orgwh1hello07:41:27
@wh1:matrix.orgwh1how07:42:09
@wh1:matrix.orgwh1what is the enterprise server suite for Synapse ?07:44:34
@wh1:matrix.orgwh1Does the latest Synapse support riot Android clients?10:27:14
@aaron:raim.istAaronYes synapse still supports extremely old versions of Matrix APIs, but if you care about security you shouldn't be using those old clients because they are full of vulnerabilities.18:02:19
@wh1:matrix.orgwh1I upgraded Synapse to the latest version, but when I clicked the sign up button on the Riot android client, it didn't work. Why?21:05:43
@aaron:raim.istAaronNot sure. Look at your Synapse logs and see what is going wrong. I would recommend you try to do the most basic type of registration, just a username and password. Not an email or a phone number.22:18:17
13 Dec 2023
@wh1:matrix.orgwh1In the element client, which api does a chat room administrator call to set another user as a chat room administrator?11:36:51
@aaron:raim.istAaron wh1: you send a m.room.power_levels event https://spec.matrix.org/v1.9/client-server-api/#mroompower_levels 16:38:59
@wh1:matrix.orgwh1
@PUT("rooms/{roomId}/state/m.room.power_levels"),---- how to write this curl?
16:59:18
@wh1:matrix.orgwh1

wh1: you send a m.room.power_levels event https://spec.matrix.org/v1.9/client-server-api/#mroompower_levels

how to send? use curl?

17:00:37
@aaron:raim.istAaron

Probably easier to use a client like Element to make that change but would be something like this with curl

curl -d '{
    "users": {
      "@a:example.com": 100,
      "@b:example.com": 100
    },
    "events": {
      "m.room.name": 50,
      "m.room.power_levels": 50,
      "m.room.history_visibility": 100,
      "m.room.canonical_alias": 50,
      "m.room.avatar": 50,
      "m.room.tombstone": 100,
      "m.room.server_acl": 100,
      "m.room.encryption": 100,
      "m.room.topic": 50,
      "im.vector.modular.widgets": 50
    },
    "events_default": 0,
    "state_default": 50,
    "ban": 50,
    "kick": 50,
    "redact": 50
  }' -XPUT "https://example.com/_matrix/client/v3/rooms/!example:example.com/send/m.room.power_levels"
17:05:10
@wh1:matrix.orgwh1Don't need a chat room administrator token?17:17:15
@aaron:raim.istAaronYes you will17:17:31
@wh1:matrix.orgwh1where to write the token?17:18:45
@aaron:raim.istAaron --header "Authorization: Bearer YOUR_TOKEN" 17:19:34
@wh1:matrix.orgwh1Shouldn't these be changed? "events": { "m.room.name": 50, "m.room.power_levels": 50, "m.room.history_visibility": 100, "m.room.canonical_alias": 50, "m.room.avatar": 50, "m.room.tombstone": 100, "m.room.server_acl": 100, "m.room.encryption": 100, "m.room.topic": 50, "im.vector.modular.widgets": 50 }, "events_default": 0, "state_default": 50, "ban": 50, "kick": 50, "redact": 5017:34:28
@aaron:raim.istAaron wh1: however you want to set those is up to you. I just pulled that from some old command I ran in the past. But you do need to send the whole power level event, not just the things you are changing. 17:35:32
@aaron:raim.istAaronBe careful to include yourself in the event otherwise you will demote yourself and won't be able to control the room anymore.17:36:36
@wh1:matrix.orgwh1return this17:48:56
@wh1:matrix.orgwh1<html> <head><title>404 - No Such Resource</title></head> <body> <h1>No Such Resource</h1> <p>Sorry. No luck finding that resource.</p> </body> </html> 17:49:00
@aaron:raim.istAaron wh1: make sure you are using the correct (sub)domain and port 17:49:37
@wh1:matrix.orgwh1Is one of the following me? "users": { "@a:example.com": 100, "@b:example.com": 100 },17:51:35
@aaron:raim.istAaron wh1: doesn't matter 17:51:57
@wh1:matrix.orgwh1

wh1: make sure you are using the correct (sub)domain and port

yes

17:53:31
@wh1:matrix.orgwh1Does one of the following two users have to be myself? "users": { "@a:example.com": 100, "@b:example.com": 100 },18:03:55
@wh1:matrix.orgwh1My server is synapse1.4.1, is it different?18:11:40

Show newer messages


Back to Room ListRoom Version: 1