mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-01-22 10:49:35 +00:00
Merge pull request #3982 from luixxiul/patch-1
Update docs for Draupnir and Mjolnir: improve the instructions for running the curl command to disable rate limiting
This commit is contained in:
commit
07392a17c8
@ -112,12 +112,20 @@ Manual access to Synapse's Admin APIs requires an access token for a homeserver
|
|||||||
|
|
||||||
#### Run the `curl` command
|
#### Run the `curl` command
|
||||||
|
|
||||||
To disable rate limiting, run the following command on systems that ship curl (note that it does not work on outdated Windows 10). Even if the APIs are not exposed to the internet, you should still be able to run the command on the homeserver locally. Before running it, make sure to replace `@bot.draupnir:example.com` with the MXID of your Draupnir:
|
To disable rate limiting, run the following command on systems that ship curl. Before running it, make sure to replace:
|
||||||
|
|
||||||
|
- `ADMIN_ACCESS_TOKEN_HERE` with the access token of the admin account
|
||||||
|
- `example.com` with your base domain
|
||||||
|
- `@bot.draupnir:example.com` with the MXID of your Draupnir bot user
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl --header "Authorization: Bearer <access_token>" -X POST https://matrix.example.com/_synapse/admin/v1/users/@bot.draupnir:example.com/override_ratelimit
|
curl --header "Authorization: Bearer ADMIN_ACCESS_TOKEN_HERE" -X POST https://matrix.example.com/_synapse/admin/v1/users/@bot.draupnir:example.com/override_ratelimit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Notes**:
|
||||||
|
- This does not work on outdated Windows 10 as curl is not available there.
|
||||||
|
- Even if the APIs are not exposed to the internet, you should still be able to run the command on the homeserver locally.
|
||||||
|
|
||||||
### Abuse Reports
|
### Abuse Reports
|
||||||
|
|
||||||
Draupnir can receive reports in the management room.
|
Draupnir can receive reports in the management room.
|
||||||
|
@ -54,12 +54,20 @@ Manual access to Synapse's Admin APIs requires an access token for a homeserver
|
|||||||
|
|
||||||
#### Run the `curl` command
|
#### Run the `curl` command
|
||||||
|
|
||||||
To disable rate limiting, run the following command on systems that ship curl (note that it does not work on outdated Windows 10). Even if the APIs are not exposed to the internet, you should still be able to run the command on the homeserver locally. Before running it, make sure to replace `@bot.mjolnir:example.com` with the MXID of your Mjolnir:
|
To disable rate limiting, run the following command on systems that ship curl. Before running it, make sure to replace:
|
||||||
|
|
||||||
|
- `ADMIN_ACCESS_TOKEN_HERE` with the access token of the admin account
|
||||||
|
- `example.com` with your base domain
|
||||||
|
- `@bot.mjolnir:example.com` with the MXID of your Mjolnir bot user
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl --header "Authorization: Bearer <access_token>" -X POST https://matrix.example.com/_synapse/admin/v1/users/@bot.mjolnir:example.com/override_ratelimit
|
curl --header "Authorization: Bearer ADMIN_ACCESS_TOKEN_HERE" -X POST https://matrix.example.com/_synapse/admin/v1/users/@bot.mjolnir:example.com/override_ratelimit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Notes**:
|
||||||
|
- This does not work on outdated Windows 10 as curl is not available there.
|
||||||
|
- Even if the APIs are not exposed to the internet, you should still be able to run the command on the homeserver locally.
|
||||||
|
|
||||||
### Create a management room
|
### Create a management room
|
||||||
|
|
||||||
Using your own account, create a new invite only room that you will use to manage the bot. This is the room where you will see the status of the bot and where you will send commands to the bot, such as the command to ban a user from another room.
|
Using your own account, create a new invite only room that you will use to manage the bot. This is the room where you will see the status of the bot and where you will send commands to the bot, such as the command to ban a user from another room.
|
||||||
|
Loading…
Reference in New Issue
Block a user