improve docs
This commit is contained in:
parent
75fe0afd2d
commit
538ca994fb
3 changed files with 136 additions and 120 deletions
60
README.matrix.md
Normal file
60
README.matrix.md
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
# Matrix
|
||||
|
||||
## HTTP
|
||||
|
||||
Configure `berlin.ccc.de` web server to send federation traffic to the matrix server:
|
||||
|
||||
```nginx
|
||||
server {
|
||||
hostname berlin.ccc.de;
|
||||
location = /.well-known/matrix/server {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
return 200 '{"m.server":"matrix.berlin.ccc.de:443"}';
|
||||
}
|
||||
location = /.well-known/matrix/client {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
return 200 '{"m.homeserver": {"base_url": "https://matrix.berlin.ccc.de"}}';
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## DNS
|
||||
|
||||
```dns
|
||||
_matrix-fed._tcp.berlin.ccc.de. IN SRV 10 0 443 matrix.berlin.ccc.de.
|
||||
_matrix-fed._tcp.berlin.ccc.de. IN SRV 10 0 443 matrix.berlin.ccc.de.
|
||||
matrix.berlin.ccc.de. IN A 195.160.173.25
|
||||
matrix.berlin.ccc.de. IN AAAA 2001:678:760:cccb::25
|
||||
matrix.berlin.ccc.de. IN CAA 0 issue "letsencrypt.org;validationmethods=http-01"
|
||||
matrix.berlin.ccc.de. IN CAA 0 iodef "mailto:admin@berlin.ccc.de"
|
||||
```
|
||||
|
||||
## Bots
|
||||
|
||||
```bash
|
||||
register_new_matrix_user \
|
||||
-c homeserver.yaml https://matrix.berlin.ccc.de \
|
||||
--user_domain berlin.ccc.de \
|
||||
--user <YOUR_BOT> \
|
||||
--password <YOUR_PASSWORD>
|
||||
```
|
||||
|
||||
## Draupnir
|
||||
|
||||
Remove rate limit for account:
|
||||
|
||||
```bash
|
||||
curl -X DELETE https://matrix.berlin.ccc.de/_synapse/admin/v1/users/@root:berlin.ccc.de/override_ratelimit
|
||||
```
|
||||
Set rate limit for account:
|
||||
|
||||
```bash
|
||||
curl -X POST -d '{"messages_per_second":0,"burst_count":0}' https://matrix.berlin.ccc.de/_synapse/admin/v1/users/@root:berlin.ccc.de/override_ratelimit
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Build with ❤️ and ❄️.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue