forked from devture/matrix-corporal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy.json.dist
67 lines (60 loc) · 1.69 KB
/
policy.json.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"schemaVersion": 1,
"flags": {
"allowCustomUserDisplayNames": false,
"allowCustomUserAvatars": false,
"allowCustomPassthroughUserPasswords": false,
"allowUnauthenticatedPasswordResets": false,
"forbidRoomCreation": false,
"forbidEncryptedRoomCreation": false,
"forbidUnencryptedRoomCreation": false
},
"managedRoomIds": [
],
"hooks": [
{
"id": "log-everything-via-a-rest-hook",
"eventType": "afterAnyRequest",
"matchRules": [
{"type": "route", "regex": "^/_matrix/client/r0/createRoom"}
],
"action": "consult.RESTServiceURL",
"RESTServiceURL": "http://hook-rest-service:8080/dump",
"RESTServiceRequestHeaders": {
"Authorization": "Bearer SOME_TOKEN"
}
}
],
"users": [
{
"id": "@a:matrix-corporal.127.0.0.1.nip.io",
"active": true,
"authType": "plain",
"authCredential": "test",
"displayName": "User A",
"joinedRoomIds": [],
"forbidRoomCreation": false,
"forbidEncryptedRoomCreation": true
},
{
"id": "@b:matrix-corporal.127.0.0.1.nip.io",
"active": true,
"authType": "sha1",
"authCredential": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
"displayName": "User B",
"avatarUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",
"joinedRoomIds": [],
"forbidRoomCreation": true
},
{
"id": "@c:matrix-corporal.127.0.0.1.nip.io",
"active": true,
"authType": "rest",
"authCredential": "http://rest-password-auth-service:8080/_matrix-internal/identity/v1/check_credentials",
"displayName": "User C",
"joinedRoomIds": [],
"forbidRoomCreation": false,
"forbidUnencryptedRoomCreation": true
}
]
}