diff --git a/admin_manual/installation/server_tuning.rst b/admin_manual/installation/server_tuning.rst index dce8cc4f3..4a0be54ab 100644 --- a/admin_manual/installation/server_tuning.rst +++ b/admin_manual/installation/server_tuning.rst @@ -123,3 +123,31 @@ To disable the revalidation completely: Any change to ``config.php`` will then require either restarting PHP, manually clearing the cache, or invalidating this particular script. For more details check out the `official documentation `_. To monitor OPcache usage, clear individual or all cache entries, `opcache-gui `_ can be used. + +Previews +-------- + +It is possible to speed up preview generation using an +external microservice: `Imaginary `. + +To do so, you will need to deploy the service and make sure that it is +not accessible from outside of your servers. Then you can configure +Nextcloud to use Imaginary by editing your `config.php`: + +.. code:: php + + [ + 'OC\Preview\MP3', + 'OC\Preview\TXT', + 'OC\Preview\MarkDown', + 'OC\Preview\OpenDocument', + 'OC\Preview\Krita', + 'OC\Preview\Imaginary', + ], + 'preview_imaginary_url' => 'http://', + + +.. note:: + + For large instance, you should follow `Imaginary's scability recommandation `