From 543c114189bdf54ff41adc69de339750514e002a Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 14 Mar 2022 16:38:41 +0100 Subject: [PATCH] Add documentation for preview hpb with Imaginary Signed-off-by: Carl Schwan --- admin_manual/installation/server_tuning.rst | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/admin_manual/installation/server_tuning.rst b/admin_manual/installation/server_tuning.rst index dce8cc4f3d0..4a0be54abc1 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 `