diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-23 10:42:45 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-23 10:42:45 +0200 |
commit | bb69eebde4e03b2672c99827d4ad5339ba432a85 (patch) | |
tree | 3e622b14aac7a7092e51167239764c28b42360e4 /config | |
parent | cb39c55073ebf7bc64e4bf0b7a29e2061f6cbbca (diff) | |
download | nextcloud-server-bb69eebde4e03b2672c99827d4ad5339ba432a85.tar.gz nextcloud-server-bb69eebde4e03b2672c99827d4ad5339ba432a85.zip |
Add a configuration switch for enabled preview mimetypes
Backport of https://github.com/owncloud/core/pull/11211 to stable7
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 d093cff2093..0a933b1ae5f 100755 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -270,6 +270,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, |