add matrix cleanup instructions. add preview config for nextcloud

This commit is contained in:
Claudio Maradonna 2022-05-20 12:18:22 +02:00
parent 58512ac416
commit 93cbb1c341
Signed by: claudiomaradonna
GPG key ID: B1EDCB4C3B05C387
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,5 @@
1. Activate `synapse-admin` following instructions provided by playbook
2. Use `synapse-admin` to clean rooms or what you don't need
3. Stop `synapse`
3. Run `REINDEX (VERBOSE) DATABASE dbnamehere;` from your db client
4. Run `VACUUM FULL VERBOSE;` from your db client

View file

@ -61,5 +61,23 @@ $CONFIG = array (
'mail_smtppassword' => '',
'maintenance' => false,
'default_phone_region' => 'IT',
'preview_max_memory' => 768,
'enable_previews' => true,
'preview_max_x' => 4096,
'preview_max_y' => 4096,
'preview_max_memory' => 768,
'preview_max_filesize_image' => 50,
'enabledPreviewProviders' => [
'OC\Preview\PNG',
'OC\Preview\JPEG',
'OC\Preview\GIF',
'OC\Preview\HEIC',
'OC\Preview\BMP',
'OC\Preview\XBitmap',
'OC\Preview\MP3',
'OC\Preview\TXT',
'OC\Preview\MarkDown',
'OC\Preview\OpenDocument',
'OC\Preview\Krita',
'OC\Preview\PDF',
],
);