diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-23 12:53:34 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-23 12:53:34 +0400 |
commit | 77a4b1609bd80b29d0b90e8430fad853b2bee0be (patch) | |
tree | de3e5d2d006f64881f77dc6ac1e83db2f382345c /config | |
parent | e001dfb3be39ce4121060e883f81b5c41f6c23a6 (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-x | config/config.sample.php | 21 |
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, |