aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php77
1 files changed, 69 insertions, 8 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index ce242ce362e..67b5069dfce 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1059,6 +1059,9 @@ $CONFIG = [
* this condition is met
* - ``apps``: if the log message is invoked by one of the specified apps,
* this condition is met
+ * - ``matches``: if all the conditions inside a group match,
+ * this condition is met. This allows to log only entries to an app
+ * by a few users.
*
* Defaults to an empty array.
*/
@@ -1066,6 +1069,15 @@ $CONFIG = [
'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
'users' => ['sample-user'],
'apps' => ['files'],
+ 'matches' => [
+ [
+ 'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
+ 'users' => ['sample-user'],
+ 'apps' => ['files'],
+ 'loglevel' => 1,
+ 'message' => 'contains substring'
+ ],
+ ],
],
/**
@@ -1292,13 +1304,19 @@ $CONFIG = [
/**
* custom path for ffmpeg binary
*
- * Defaults to ``null`` and falls back to searching ``avconv`` and ``ffmpeg`` in the configured ``PATH`` environment
+ * Defaults to ``null`` and falls back to searching ``avconv`` and ``ffmpeg``
+ * in the configured ``PATH`` environment
*/
'preview_ffmpeg_path' => '/usr/bin/ffmpeg',
/**
* Set the URL of the Imaginary service to send image previews to.
- * Also requires the ``OC\Preview\Imaginary`` provider to be enabled.
+ * Also requires the ``OC\Preview\Imaginary`` provider to be enabled in the
+ * ``enabledPreviewProviders`` array, to create previews for these mimetypes: bmp,
+ * x-bitmap, png, jpeg, gif, heic, heif, svg+xml, tiff, webp and illustrator.
+ *
+ * If you want Imaginary to also create preview images from PDF Documents, you
+ * have to add the ``OC\Preview\ImaginaryPDF`` provider as well.
*
* See https://github.com/h2non/imaginary
*/
@@ -1358,6 +1376,15 @@ $CONFIG = [
],
/**
+ * Maximum file size for metadata generation.
+ * If a file exceeds this size, metadata generation will be skipped.
+ * Note: memory equivalent to this size will be used for metadata generation.
+ *
+ * Default: 256 megabytes.
+ */
+'metadata_max_filesize' => 256,
+
+/**
* LDAP
*
* Global settings used by LDAP User and Group Backend
@@ -1978,26 +2005,50 @@ $CONFIG = [
'updatedirectory' => '',
/**
- * Blacklist a specific file or files and disallow the upload of files
+ * Block a specific file or files and disallow the upload of files
* with this name. ``.htaccess`` is blocked by default.
+ *
* WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.
*
+ * Note that this list is case-insensitive.
+ *
* Defaults to ``array('.htaccess')``
*/
-'blacklisted_files' => ['.htaccess'],
+'forbidden_filenames' => ['.htaccess'],
/**
- * Blacklist characters from being used in filenames. This is useful if you
+ * Disallow the upload of files with specific basenames.
+ *
+ * The basename is the name of the file without the extension,
+ * e.g. for "archive.tar.gz" the basename would be "archive".
+ *
+ * Note that this list is case-insensitive.
+ *
+ * Defaults to ``array()``
+ */
+'forbidden_filename_basenames' => [],
+
+/**
+ * Block characters from being used in filenames. This is useful if you
* have a filesystem or OS which does not support certain characters like windows.
*
- * The '/' and '\' characters are always forbidden.
+ * The '/' and '\' characters are always forbidden, as well as all characters in the ASCII range [0-31].
*
- * Example for windows systems: ``array('?', '<', '>', ':', '*', '|', '"', chr(0), "\n", "\r")``
+ * Example for windows systems: ``array('?', '<', '>', ':', '*', '|', '"')``
* see https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits
*
* Defaults to ``array()``
*/
-'forbidden_chars' => [],
+'forbidden_filename_characters' => [],
+
+/**
+ * Deny extensions from being used for filenames.
+ *
+ * The '.part' extension is always forbidden, as this is used internally by Nextcloud.
+ *
+ * Defaults to ``array('.filepart', '.part')``
+ */
+'forbidden_filename_extensions' => ['.part', '.filepart'],
/**
* If you are applying a theme to Nextcloud, enter the name of the theme here.
@@ -2186,6 +2237,16 @@ $CONFIG = [
'forwarded_for_headers' => ['HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'],
/**
+ * List of trusted IP ranges for admin actions
+ *
+ * If this list is non-empty, all admin actions must be triggered from
+ * IP addresses inside theses ranges.
+ *
+ * Defaults to an empty array.
+ */
+'allowed_admin_ranges' => ['192.0.2.42/32', '233.252.0.0/24', '2001:db8::13:37/64'],
+
+/**
* max file size for animating gifs on public-sharing-site.
* If the gif is bigger, it'll show a static preview
*