Add additional Synapse scripts

This commit is contained in:
deathrow 2023-01-06 21:08:32 -05:00
parent 3171f10371
commit c8d934eba8
No known key found for this signature in database
GPG Key ID: FF39D67A22069F73
4 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/bin/bash
docker exec -it synapse curl --header "Authorization: Bearer TOKEN" -X GET http://0.0.0.0:8008/_synapse/admin/v1/rooms/ROOMID/block

View File

@ -0,0 +1,2 @@
#!/bin/bash
docker exec -it synapse curl --header "Authorization: Bearer TOKEN" -X GET http://0.0.0.0:8008/_synapse/admin/v1/rooms

View File

@ -0,0 +1,2 @@
#!/bin/bash
docker exec -it synapse curl --header "Authorization: Bearer TOKEN" -X POST http://0.0.0.0:8008/_synapse/admin/v1/background_updates/start_job -d '{ "job_name": "populate_stats_process_rooms" }'

View File

@ -0,0 +1,2 @@
#!/bin/bash
docker exec -it synapse curl --header "Authorization: Bearer TOKEN" -X POST http://0.0.0.0:8008/_synapse/admin/v1/purge_media_cache?before_ts=TIME-IN-UNIX