访问nextcloud官方的配置参数页面。
nextcloud网盘的config文件通用配置,强制启用中文页面,使用APCu内存缓存和Memcached数据缓存,-GD生成缩略图,超过50M的大文件使用其它软件生成,例如:。缩略图支持视频格式。
以下是设置的通用config中的配置文件:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  'installed' => true,
  'updater.release.channel' => 'stable',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\User_LDAP\LDAPProviderFactory',
  'default_language' => 'cn',
  'default_locale' => 'zh_CN',
  'knowledgebaseenabled' => false,
  'remember_login_cookie_lifetime' => 60<em>60</em>24*15,
  'session_lifetime' => 60 * 60 * 24,
  'versions_retention_obligation' => 'disabled',
  'loglevel' => 3,
  'preview_max_x' => 2030,
  'preview_max_y' => 1080,
  'preview_max_filesize_image' => 50,
  'memcache.local' => '&#92;OC&#92;Memcache&#92;APCu',
  'memcache.distributed' => '\OC\Memcache\Memcached',
  'simpleSignUpLink.shown' => false,
  'enable_previews' => true,
  'preview_libreoffice_path' => '/usr/bin/libreoffice6.4',
  'enabledPreviewProviders' =>
  array (
    0 => 'OC&#92;Preview&#92;TXT',
    1 => 'OC&#92;Preview&#92;PDF',
    2 => 'OC&#92;Preview&#92;AVI',
    3 => 'OC&#92;Preview&#92;Image',
    4 => 'OC&#92;Preview&#92;Photoshop',
    5 => 'OC&#92;Preview&#92;TIFF',
    6 => 'OC&#92;Preview&#92;SVG',
    7 => 'OC&#92;Preview&#92;Font',
    8 => 'OC&#92;Preview&#92;MP3',
    9 => 'OC&#92;Preview&#92;Movie',
    10 => 'OC&#92;Preview&#92;MKV',
    11 => 'OC&#92;Preview&#92;MP4',
    12 => 'OC&#92;Preview&#92;PNG',
    13 => 'OC&#92;Preview&#92;GIF',
    14 => 'OC&#92;Preview&#92;BMP',
  ),
  'maintenance' => false,
  'app_install_overwrite' =>
  array (
    0 => 'files_clipboard',
  ),

以上文件粘贴在你的config中,粘贴前查找一下有无重复字段。

订阅
提醒
guest
0 评论
内联反馈
查看所有评论