Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-23 12:53:34 +0400
committerLukas Reschke <lukas@owncloud.com>2014-09-23 12:53:34 +0400
commit77a4b1609bd80b29d0b90e8430fad853b2bee0be (patch)
treede3e5d2d006f64881f77dc6ac1e83db2f382345c /config
parente001dfb3be39ce4121060e883f81b5c41f6c23a6 (diff)
Add a configuration switch for enabled preview mimetypes
Backport of https://github.com/owncloud/core/pull/11211 to stable6
Diffstat (limited to 'config')
-rwxr-xr-xconfig/config.sample.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index bfe7e5c9ffc..dfb7a227404 100755
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -243,6 +243,27 @@ $CONFIG = array(
'preview_libreoffice_path' => '/usr/bin/libreoffice',
/* cl parameters for libreoffice / openoffice */
'preview_office_cl_parameters' => '',
+/**
+ * Only register providers that have been explicitly enabled
+ *
+ * The following providers are enabled by default:
+ * - OC\Preview\Image
+ * - OC\Preview\MP3
+ * - OC\Preview\TXT
+ * - OC\Preview\MarkDown
+ *
+ * The following providers are disabled by default due to performance or privacy concerns:
+ * - OC\Preview\Office
+ * - OC\Preview\SVG
+ * - OC\Preview\Movies
+ * - OC\Preview\PDF
+ */
+'enabledPreviewProviders' => array(
+ 'OC\Preview\Image',
+ 'OC\Preview\MP3',
+ 'OC\Preview\TXT',
+ 'OC\Preview\MarkDown'
+),
/* whether avatars should be enabled */
'enable_avatars' => true,