You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.sample.php 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065
  1. <?php
  2. /**
  3. * This configuration file is only provided to document the different
  4. * configuration options and their usage.
  5. *
  6. * DO NOT COMPLETELY BASE YOUR CONFIGURATION FILE ON THIS SAMPLE. THIS MAY BREAK
  7. * YOUR INSTANCE. Instead, manually copy configuration switches that you
  8. * consider important for your instance to your working ``config.php``, and
  9. * apply configuration options that are pertinent for your instance.
  10. *
  11. * This file is used to generate the config documentation. Please consider
  12. * following requirements of the current parser:
  13. * * all comments need to start with `/**` and end with ` *\/` - each on their
  14. * own line
  15. * * add a `@see CONFIG_INDEX` to copy a previously described config option
  16. * also to this line
  17. * * everything between the ` *\/` and the next `/**` will be treated as the
  18. * config option
  19. * * use RST syntax
  20. */
  21. /**
  22. * Only enable this for local development and not in production environments
  23. * This will disable the minifier and outputs some additional debug informations
  24. */
  25. define('DEBUG', true);
  26. $CONFIG = array(
  27. /**
  28. * Default Parameters
  29. *
  30. * These parameters are configured by the ownCloud installer, and are required
  31. * for your ownCloud server to operate.
  32. */
  33. /**
  34. * This is a unique identifier for your ownCloud installation, created
  35. * automatically by the installer. This example is for documentation only,
  36. * and you should never use it because it will not work. A valid ``instanceid``
  37. * is created when you install ownCloud.
  38. *
  39. * 'instanceid' => 'd3c944a9a',
  40. */
  41. 'instanceid' => '',
  42. /**
  43. * The salt used to hash all passwords, auto-generated by the ownCloud
  44. * installer. (There are also per-user salts.) If you lose this salt you lose
  45. * all your passwords. This example is for documentation only, and you should
  46. * never use it.
  47. *
  48. * @deprecated This salt is deprecated and only used for legacy-compatibility,
  49. * developers should *NOT* use this value for anything nowadays.
  50. *
  51. * 'passwordsalt' => 'd3c944a9af095aa08f',
  52. */
  53. 'passwordsalt' => '',
  54. /**
  55. * The hashing cost used by hashes generated by ownCloud
  56. * Using a higher value requires more time and CPU power to calculate the hashes
  57. */
  58. 'hashingCost' => 10,
  59. /**
  60. * Your list of trusted domains that users can log into. Specifying trusted
  61. * domains prevents host header poisoning. Do not remove this, as it performs
  62. * necessary security checks.
  63. */
  64. 'trusted_domains' =>
  65. array (
  66. 'demo.example.org',
  67. 'otherdomain.example.org',
  68. ),
  69. /**
  70. * Where user files are stored; this defaults to ``data/`` in the ownCloud
  71. * directory. The SQLite database is also stored here, when you use SQLite.
  72. * (SQLite is not available in ownCloud Enterprise Edition)
  73. */
  74. 'datadirectory' => '/var/www/owncloud/data',
  75. /**
  76. * The current version number of your ownCloud installation. This is set up
  77. * during installation and update, so you shouldn't need to change it.
  78. */
  79. 'version' => '',
  80. /**
  81. * Identifies the database used with this installation. See also config option
  82. * ``supportedDatabases``
  83. *
  84. * Available:
  85. * - sqlite (SQLite3 - Not in Enterprise Edition)
  86. * - mysql (MySQL/MariaDB)
  87. * - pgsql (PostgreSQL)
  88. * - oci (Oracle - Enterprise Edition Only)
  89. */
  90. 'dbtype' => 'sqlite',
  91. /**
  92. * Your host server name, for example ``localhost``, ``hostname``,
  93. * ``hostname.example.com``, or the IP address. To specify a port use
  94. * ``hostname:####``; to specify a Unix socket use
  95. * ``localhost:/path/to/socket``.
  96. */
  97. 'dbhost' => '',
  98. /**
  99. * The name of the ownCloud database, which is set during installation. You
  100. * should not need to change this.
  101. */
  102. 'dbname' => 'owncloud',
  103. /**
  104. * The user that ownCloud uses to write to the database. This must be unique
  105. * across ownCloud instances using the same SQL database. This is set up during
  106. * installation, so you shouldn't need to change it.
  107. */
  108. 'dbuser' => '',
  109. /**
  110. * The password for the database user. This is set up during installation, so
  111. * you shouldn't need to change it.
  112. */
  113. 'dbpassword' => '',
  114. /**
  115. * Prefix for the ownCloud tables in the database.
  116. */
  117. 'dbtableprefix' => '',
  118. /**
  119. * Additional driver options for the database connection, eg. to enable SSL
  120. * encryption in MySQL.
  121. */
  122. 'dbdriveroptions' => array(
  123. PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
  124. ),
  125. /**
  126. * sqlite3 journal mode can be specified using this config parameter - can be
  127. * 'WAL' or 'DELETE' see for more details https://www.sqlite.org/wal.html
  128. */
  129. 'sqlite.journal_mode' => 'DELETE',
  130. /**
  131. * Indicates whether the ownCloud instance was installed successfully; ``true``
  132. * indicates a successful installation, and ``false`` indicates an unsuccessful
  133. * installation.
  134. */
  135. 'installed' => false,
  136. /**
  137. * User Experience
  138. *
  139. * These optional parameters control some aspects of the user interface. Default
  140. * values, where present, are shown.
  141. */
  142. /**
  143. * This sets the default language on your ownCloud server, using ISO_639-1
  144. * language codes such as ``en`` for English, ``de`` for German, and ``fr`` for
  145. * French. It overrides automatic language detection on public pages like login
  146. * or shared items. User's language preferences configured under "personal ->
  147. * language" override this setting after they have logged in.
  148. */
  149. 'default_language' => 'en',
  150. /**
  151. * Set the default app to open on login. Use the app names as they appear in the
  152. * URL after clicking them in the Apps menu, such as documents, calendar, and
  153. * gallery. You can use a comma-separated list of app names, so if the first
  154. * app is not enabled for a user then ownCloud will try the second one, and so
  155. * on. If no enabled apps are found it defaults to the Files app.
  156. */
  157. 'defaultapp' => 'files',
  158. /**
  159. * ``true`` enables the Help menu item in the user menu (top right of the
  160. * ownCloud Web interface). ``false`` removes the Help item.
  161. */
  162. 'knowledgebaseenabled' => true,
  163. /**
  164. * ``true`` enables avatars, or user profile photos. These appear on the User
  165. * page, on user's Personal pages and are used by some apps (contacts, mail,
  166. * etc). ``false`` disables them.
  167. */
  168. 'enable_avatars' => true,
  169. /**
  170. * ``true`` allows users to change their display names (on their Personal
  171. * pages), and ``false`` prevents them from changing their display names.
  172. */
  173. 'allow_user_to_change_display_name' => true,
  174. /**
  175. * Lifetime of the remember login cookie, which is set when the user clicks the
  176. * ``remember`` checkbox on the login screen. The default is 15 days, expressed
  177. * in seconds.
  178. */
  179. 'remember_login_cookie_lifetime' => 60*60*24*15,
  180. /**
  181. * The lifetime of a session after inactivity; the default is 24 hours,
  182. * expressed in seconds.
  183. */
  184. 'session_lifetime' => 60 * 60 * 24,
  185. /**
  186. * Enable or disable session keep-alive when a user is logged in to the Web UI.
  187. * Enabling this sends a "heartbeat" to the server to keep it from timing out.
  188. */
  189. 'session_keepalive' => true,
  190. /**
  191. * The directory where the skeleton files are located. These files will be
  192. * copied to the data directory of new users. Leave empty to not copy any
  193. * skeleton files.
  194. */
  195. 'skeletondirectory' => '/path/to/owncloud/core/skeleton',
  196. /**
  197. * The ``user_backends`` app (which needs to be enabled first) allows you to
  198. * configure alternate authentication backends. Supported backends are:
  199. * IMAP (OC_User_IMAP), SMB (OC_User_SMB), and FTP (OC_User_FTP).
  200. */
  201. 'user_backends' => array(
  202. array(
  203. 'class' => 'OC_User_IMAP',
  204. 'arguments' => array('{imap.gmail.com:993/imap/ssl}INBOX')
  205. )
  206. ),
  207. /**
  208. * Mail Parameters
  209. *
  210. * These configure the email settings for ownCloud notifications and password
  211. * resets.
  212. */
  213. /**
  214. * The return address that you want to appear on emails sent by the ownCloud
  215. * server, for example ``oc-admin@example.com``, substituting your own domain,
  216. * of course.
  217. */
  218. 'mail_domain' => 'example.com',
  219. /**
  220. * FROM address that overrides the built-in ``sharing-noreply`` and
  221. * ``lostpassword-noreply`` FROM addresses.
  222. */
  223. 'mail_from_address' => 'owncloud',
  224. /**
  225. * Enable SMTP class debugging.
  226. */
  227. 'mail_smtpdebug' => false,
  228. /**
  229. * Which mode to use for sending mail: ``sendmail``, ``smtp``, ``qmail`` or
  230. * ``php``.
  231. *
  232. * If you are using local or remote SMTP, set this to ``smtp``.
  233. *
  234. * If you are using PHP mail you must have an installed and working email system
  235. * on the server. The program used to send email is defined in the ``php.ini``
  236. * file.
  237. *
  238. * For the ``sendmail`` option you need an installed and working email system on
  239. * the server, with ``/usr/sbin/sendmail`` installed on your Unix system.
  240. *
  241. * For ``qmail`` the binary is /var/qmail/bin/sendmail, and it must be installed
  242. * on your Unix system.
  243. */
  244. 'mail_smtpmode' => 'sendmail',
  245. /**
  246. * This depends on ``mail_smtpmode``. Specified the IP address of your mail
  247. * server host. This may contain multiple hosts separated by a semi-colon. If
  248. * you need to specify the port number append it to the IP address separated by
  249. * a colon, like this: ``127.0.0.1:24``.
  250. */
  251. 'mail_smtphost' => '127.0.0.1',
  252. /**
  253. * This depends on ``mail_smtpmode``. Specify the port for sending mail.
  254. */
  255. 'mail_smtpport' => 25,
  256. /**
  257. * This depends on ``mail_smtpmode``. This set an SMTP server timeout, in
  258. * seconds. You may need to increase this if you are running an anti-malware or
  259. * spam scanner.
  260. */
  261. 'mail_smtptimeout' => 10,
  262. /**
  263. * This depends on ``mail_smtpmode``. Specify when you are using ``ssl`` or
  264. * ``tls``, or leave empty for no encryption.
  265. */
  266. 'mail_smtpsecure' => '',
  267. /**
  268. * This depends on ``mail_smtpmode``. Change this to ``true`` if your mail
  269. * server requires authentication.
  270. */
  271. 'mail_smtpauth' => false,
  272. /**
  273. * This depends on ``mail_smtpmode``. If SMTP authentication is required, choose
  274. * the authentication type as ``LOGIN`` (default) or ``PLAIN``.
  275. */
  276. 'mail_smtpauthtype' => 'LOGIN',
  277. /**
  278. * This depends on ``mail_smtpauth``. Specify the username for authenticating to
  279. * the SMTP server.
  280. */
  281. 'mail_smtpname' => '',
  282. /**
  283. * This depends on ``mail_smtpauth``. Specify the password for authenticating to
  284. * the SMTP server.
  285. */
  286. 'mail_smtppassword' => '',
  287. /**
  288. * Proxy Configurations
  289. */
  290. /**
  291. * The automatic hostname detection of ownCloud can fail in certain reverse
  292. * proxy and CLI/cron situations. This option allows you to manually override
  293. * the automatic detection; for example ``www.example.com``, or specify the port
  294. * ``www.example.com:8080``.
  295. */
  296. 'overwritehost' => '',
  297. /**
  298. * When generating URLs, ownCloud attempts to detect whether the server is
  299. * accessed via ``https`` or ``http``. However, if ownCloud is behind a proxy
  300. * and the proxy handles the ``https`` calls, ownCloud would not know that
  301. * ``ssl`` is in use, which would result in incorrect URLs being generated.
  302. * Valid values are ``http`` and ``https``.
  303. */
  304. 'overwriteprotocol' => '',
  305. /**
  306. * ownCloud attempts to detect the webroot for generating URLs automatically.
  307. * For example, if ``www.example.com/owncloud`` is the URL pointing to the
  308. * ownCloud instance, the webroot is ``/owncloud``. When proxies are in use, it
  309. * may be difficult for ownCloud to detect this parameter, resulting in invalid
  310. * URLs.
  311. */
  312. 'overwritewebroot' => '',
  313. /**
  314. * This option allows you to define a manual override condition as a regular
  315. * expression for the remote IP address. For example, defining a range of IP
  316. * addresses starting with ``10.0.0.`` and ending with 1 to 3:
  317. * ``^10\.0\.0\.[1-3]$``
  318. */
  319. 'overwritecondaddr' => '',
  320. /**
  321. * Use this configuration parameter to specify the base url for any urls which
  322. * are generated within ownCloud using any kind of command line tools (cron or
  323. * occ). The value should contain the full base URL:
  324. * ``https://www.example.com/owncloud``
  325. */
  326. 'overwrite.cli.url' => '',
  327. /**
  328. * The URL of your proxy server, for example ``proxy.example.com:8081``.
  329. */
  330. 'proxy' => '',
  331. /**
  332. * The optional authentication for the proxy to use to connect to the internet.
  333. * The format is: ``username:password``.
  334. */
  335. 'proxyuserpwd' => '',
  336. /**
  337. * Deleted Items (trash bin)
  338. *
  339. * These parameters control the Deleted files app.
  340. */
  341. /**
  342. * When the trash bin app is enabled (default), this is the number of days a
  343. * file will be kept in the trash bin. Default is 30 days.
  344. */
  345. 'trashbin_retention_obligation' => 30,
  346. /**
  347. * Disable or enable auto-expiration for the trash bin. By default
  348. * auto-expiration is enabled.
  349. */
  350. 'trashbin_auto_expire' => true,
  351. /**
  352. * ownCloud Verifications
  353. *
  354. * ownCloud performs several verification checks. There are two options,
  355. * ``true`` and ``false``.
  356. */
  357. /**
  358. * Checks an app before install whether it uses private APIs instead of the
  359. * proper public APIs. If this is set to true it will only allow to install or
  360. * enable apps that pass this check.
  361. */
  362. 'appcodechecker' => true,
  363. /**
  364. * Check if ownCloud is up-to-date and shows a notification if a new version is
  365. * available.
  366. */
  367. 'updatechecker' => true,
  368. /**
  369. * Is ownCloud connected to the Internet or running in a closed network?
  370. */
  371. 'has_internet_connection' => true,
  372. /**
  373. * Allows ownCloud to verify a working WebDAV connection. This is done by
  374. * attempting to make a WebDAV request from PHP.
  375. */
  376. 'check_for_working_webdav' => true,
  377. /**
  378. * This is a crucial security check on Apache servers that should always be set
  379. * to ``true``. This verifies that the ``.htaccess`` file is writable and works.
  380. * If it is not, then any options controlled by ``.htaccess``, such as large
  381. * file uploads, will not work. It also runs checks on the ``data/`` directory,
  382. * which verifies that it can't be accessed directly through the web server.
  383. */
  384. 'check_for_working_htaccess' => true,
  385. /**
  386. * In certain environments it is desired to have a read-only config file.
  387. * When this switch is set to ``true`` ownCloud will not verify whether the
  388. * configuration is writable. However, it will not be possible to configure
  389. * all options via the web-interface. Furthermore, when updating ownCloud
  390. * it is required to make the config file writable again for the update
  391. * process.
  392. */
  393. 'config_is_read_only' => false,
  394. /**
  395. * Logging
  396. */
  397. /**
  398. * By default the ownCloud logs are sent to the ``owncloud.log`` file in the
  399. * default ownCloud data directory.
  400. * If syslogging is desired, set this parameter to ``syslog``.
  401. * Setting this parameter to ``errorlog`` will use the PHP error_log function
  402. * for logging.
  403. */
  404. 'log_type' => 'owncloud',
  405. /**
  406. * Change the ownCloud logfile name from ``owncloud.log`` to something else.
  407. */
  408. 'logfile' => 'owncloud.log',
  409. /**
  410. * Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 =
  411. * Warning, 3 = Error. The default value is Warning.
  412. */
  413. 'loglevel' => 2,
  414. /**
  415. * Log condition for log level increase based on conditions. Once one of these
  416. * conditions is met, the required log level is set to debug. This allows to
  417. * debug specific requests, users or apps
  418. *
  419. * Supported conditions:
  420. * - ``shared_secret``: if a request parameter with the name `log_secret` is set to
  421. * this value the condition is met
  422. * - ``users``: if the current request is done by one of the specified users,
  423. * this condition is met
  424. * - ``apps``: if the log message is invoked by one of the specified apps,
  425. * this condition is met
  426. *
  427. * Defaults to an empty array.
  428. */
  429. 'log.condition' => [
  430. 'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
  431. 'users' => ['sample-user'],
  432. 'apps' => ['files'],
  433. ],
  434. /**
  435. * This uses PHP.date formatting; see http://php.net/manual/en/function.date.php
  436. */
  437. 'logdateformat' => 'F d, Y H:i:s',
  438. /**
  439. * The default timezone for logfiles is UTC. You may change this; see
  440. * http://php.net/manual/en/timezones.php
  441. */
  442. 'logtimezone' => 'Europe/Berlin',
  443. /**
  444. * Append all database queries and parameters to the log file. Use this only for
  445. * debugging, as your logfile will become huge.
  446. */
  447. 'log_query' => false,
  448. /**
  449. * Log successful cron runs.
  450. */
  451. 'cron_log' => true,
  452. /**
  453. * Location of the lock file for cron executions can be specified here.
  454. * Default is within the tmp directory. The file is named in the following way:
  455. * owncloud-server-$INSTANCEID-cron.lock
  456. * where $INSTANCEID is the string specified in the instanceid field.
  457. * Because the cron lock file is accessed in regular intervals, it may prevent
  458. * enabled disk drives from spinning down. A different location for this file
  459. * can solve such issues.
  460. */
  461. 'cron.lockfile.location' => '',
  462. /**
  463. * Enables log rotation and limits the total size of logfiles. The default is 0,
  464. * or no rotation. Specify a size in bytes, for example 104857600 (100 megabytes
  465. * = 100 * 1024 * 1024 bytes). A new logfile is created with a new name when the
  466. * old logfile reaches your limit. The total size of all logfiles is double the
  467. * ``log_rotate_sizerotation`` value.
  468. */
  469. 'log_rotate_size' => false,
  470. /**
  471. * Alternate Code Locations
  472. *
  473. * Some of the ownCloud code may be stored in alternate locations.
  474. */
  475. /**
  476. * ownCloud uses some 3rd party PHP components to provide certain functionality.
  477. * These components are shipped as part of the software package and reside in
  478. * ``owncloud/3rdparty``. Use this option to configure a different location.
  479. */
  480. '3rdpartyroot' => '',
  481. /**
  482. * If you have an alternate ``3rdpartyroot``, you must also configure the URL as
  483. * seen by a Web browser.
  484. */
  485. '3rdpartyurl' => '',
  486. /**
  487. * This section is for configuring the download links for ownCloud clients, as
  488. * seen in the first-run wizard and on Personal pages.
  489. */
  490. 'customclient_desktop' =>
  491. 'http://owncloud.org/sync-clients/',
  492. 'customclient_android' =>
  493. 'https://play.google.com/store/apps/details?id=com.owncloud.android',
  494. 'customclient_ios' =>
  495. 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8',
  496. /**
  497. * Apps
  498. *
  499. * Options for the Apps folder, Apps store, and App code checker.
  500. */
  501. /**
  502. * When enabled, admins may install apps from the ownCloud app store.
  503. */
  504. 'appstoreenabled' => true,
  505. /**
  506. * The URL of the appstore to use.
  507. */
  508. 'appstoreurl' => 'https://api.owncloud.com/v1',
  509. /**
  510. * Whether to show experimental apps in the appstore interface
  511. *
  512. * Experimental apps are not checked for security issues and are new or known
  513. * to be unstable and under heavy development. Installing these can cause data
  514. * loss or security breaches.
  515. */
  516. 'appstore.experimental.enabled' => false,
  517. /**
  518. * Use the ``apps_paths`` parameter to set the location of the Apps directory,
  519. * which should be scanned for available apps, and where user-specific apps
  520. * should be installed from the Apps store. The ``path`` defines the absolute
  521. * file system path to the app folder. The key ``url`` defines the HTTP web path
  522. * to that folder, starting from the ownCloud web root. The key ``writable``
  523. * indicates if a web server can write files to that folder.
  524. */
  525. 'apps_paths' => array(
  526. array(
  527. 'path'=> '/var/www/owncloud/apps',
  528. 'url' => '/apps',
  529. 'writable' => true,
  530. ),
  531. ),
  532. /**
  533. * @see appcodechecker
  534. */
  535. /**
  536. * Previews
  537. *
  538. * ownCloud supports previews of image files, the covers of MP3 files, and text
  539. * files. These options control enabling and disabling previews, and thumbnail
  540. * size.
  541. */
  542. /**
  543. * By default, ownCloud can generate previews for the following filetypes:
  544. *
  545. * - Images files
  546. * - Covers of MP3 files
  547. * - Text documents
  548. *
  549. * Valid values are ``true``, to enable previews, or
  550. * ``false``, to disable previews
  551. */
  552. 'enable_previews' => true,
  553. /**
  554. * The maximum width, in pixels, of a preview. A value of ``null`` means there
  555. * is no limit.
  556. */
  557. 'preview_max_x' => 2048,
  558. /**
  559. * The maximum height, in pixels, of a preview. A value of ``null`` means there
  560. * is no limit.
  561. */
  562. 'preview_max_y' => 2048,
  563. /**
  564. * If a lot of small pictures are stored on the ownCloud instance and the
  565. * preview system generates blurry previews, you might want to consider setting
  566. * a maximum scale factor. By default, pictures are upscaled to 10 times the
  567. * original size. A value of ``1`` or ``null`` disables scaling.
  568. */
  569. 'preview_max_scale_factor' => 10,
  570. /**
  571. * max file size for generating image previews with imagegd (default behaviour)
  572. * If the image is bigger, it'll try other preview generators,
  573. * but will most likely show the default mimetype icon
  574. *
  575. * Value represents the maximum filesize in megabytes
  576. * Default is 50
  577. * Set to -1 for no limit
  578. */
  579. 'preview_max_filesize_image' => 50,
  580. /**
  581. * custom path for LibreOffice/OpenOffice binary
  582. */
  583. 'preview_libreoffice_path' => '/usr/bin/libreoffice',
  584. /**
  585. * Use this if LibreOffice/OpenOffice requires additional arguments.
  586. */
  587. 'preview_office_cl_parameters' =>
  588. ' --headless --nologo --nofirststartwizard --invisible --norestore '.
  589. '-convert-to pdf -outdir ',
  590. /**
  591. * Only register providers that have been explicitly enabled
  592. *
  593. * The following providers are enabled by default:
  594. *
  595. * - OC\Preview\PNG
  596. * - OC\Preview\JPEG
  597. * - OC\Preview\GIF
  598. * - OC\Preview\BMP
  599. * - OC\Preview\XBitmap
  600. * - OC\Preview\MarkDown
  601. * - OC\Preview\MP3
  602. * - OC\Preview\TXT
  603. *
  604. * The following providers are disabled by default due to performance or privacy
  605. * concerns:
  606. *
  607. * - OC\Preview\Illustrator
  608. * - OC\Preview\Movie
  609. * - OC\Preview\MSOffice2003
  610. * - OC\Preview\MSOffice2007
  611. * - OC\Preview\MSOfficeDoc
  612. * - OC\Preview\OpenDocument
  613. * - OC\Preview\PDF
  614. * - OC\Preview\Photoshop
  615. * - OC\Preview\Postscript
  616. * - OC\Preview\StarOffice
  617. * - OC\Preview\SVG
  618. * - OC\Preview\TIFF
  619. * - OC\Preview\Font
  620. *
  621. * .. note:: Troubleshooting steps for the MS Word previews are available
  622. * at the :doc:`../configuration_files/collaborative_documents_configuration`
  623. * section of the Administrators Manual.
  624. *
  625. * The following providers are not available in Microsoft Windows:
  626. *
  627. * - OC\Preview\Movie
  628. * - OC\Preview\MSOfficeDoc
  629. * - OC\Preview\MSOffice2003
  630. * - OC\Preview\MSOffice2007
  631. * - OC\Preview\OpenDocument
  632. * - OC\Preview\StarOffice
  633. */
  634. 'enabledPreviewProviders' => array(
  635. 'OC\Preview\PNG',
  636. 'OC\Preview\JPEG',
  637. 'OC\Preview\GIF',
  638. 'OC\Preview\BMP',
  639. 'OC\Preview\XBitmap',
  640. 'OC\Preview\MP3',
  641. 'OC\Preview\TXT',
  642. 'OC\Preview\MarkDown'
  643. ),
  644. /**
  645. * LDAP
  646. *
  647. * Global settings used by LDAP User and Group Backend
  648. */
  649. /**
  650. * defines the interval in minutes for the background job that checks user
  651. * existance and marks them as ready to be cleaned up. The number is always
  652. * minutes. Setting it to 0 disables the feature.
  653. * See command line (occ) methods ldap:show-remnants and user:delete
  654. */
  655. 'ldapUserCleanupInterval' => 51,
  656. /**
  657. * Maintenance
  658. *
  659. * These options are for halting user activity when you are performing server
  660. * maintenance.
  661. */
  662. /**
  663. * Enable maintenance mode to disable ownCloud
  664. *
  665. * If you want to prevent users to login to ownCloud before you start doing some
  666. * maintenance work, you need to set the value of the maintenance parameter to
  667. * true. Please keep in mind that users who are already logged-in are kicked out
  668. * of ownCloud instantly.
  669. */
  670. 'maintenance' => false,
  671. /**
  672. * When set to ``true``, the ownCloud instance will be unavailable for all users
  673. * who are not in the ``admin`` group.
  674. */
  675. 'singleuser' => false,
  676. /**
  677. * SSL
  678. */
  679. /**
  680. * Extra SSL options to be used for configuration.
  681. */
  682. 'openssl' => array(
  683. 'config' => '/absolute/location/of/openssl.cnf',
  684. ),
  685. /**
  686. * Memory caching backend configuration
  687. *
  688. * Available cache backends:
  689. *
  690. * * ``\OC\Memcache\APC`` Alternative PHP Cache backend
  691. * * ``\OC\Memcache\APCu`` APC user backend
  692. * * ``\OC\Memcache\ArrayCache`` In-memory array-based backend (not recommended)
  693. * * ``\OC\Memcache\Memcached`` Memcached backend
  694. * * ``\OC\Memcache\Redis`` Redis backend
  695. * * ``\OC\Memcache\XCache`` XCache backend
  696. *
  697. * Advice on choosing between the various backends:
  698. *
  699. * * APCu should be easiest to install. Almost all distributions have packages.
  700. * Use this for single user environment for all caches.
  701. * * Use Redis or Memcached for distributed environments.
  702. * For the local cache (you can configure two) take APCu.
  703. */
  704. /**
  705. * Memory caching backend for locally stored data
  706. *
  707. * * Used for host-specific data, e.g. file paths
  708. */
  709. 'memcache.local' => '\OC\Memcache\APCu',
  710. /**
  711. * Memory caching backend for distributed data
  712. *
  713. * * Used for installation-specific data, e.g. database caching
  714. * * If unset, defaults to the value of memcache.local
  715. */
  716. 'memcache.distributed' => '\OC\Memcache\Memcached',
  717. /**
  718. * Connection details for redis to use for memory caching.
  719. */
  720. 'redis' => array(
  721. 'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
  722. 'port' => 6379,
  723. 'timeout' => 0.0,
  724. 'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
  725. ),
  726. /**
  727. * Server details for one or more memcached servers to use for memory caching.
  728. */
  729. 'memcached_servers' => array(
  730. // hostname, port and optional weight. Also see:
  731. // http://www.php.net/manual/en/memcached.addservers.php
  732. // http://www.php.net/manual/en/memcached.addserver.php
  733. array('localhost', 11211),
  734. //array('other.host.local', 11211),
  735. ),
  736. /**
  737. * Location of the cache folder, defaults to ``data/$user/cache`` where
  738. * ``$user`` is the current user. When specified, the format will change to
  739. * ``$cache_path/$user`` where ``$cache_path`` is the configured cache directory
  740. * and ``$user`` is the user.
  741. */
  742. 'cache_path' => '',
  743. /**
  744. * Using Object Store with ownCloud
  745. */
  746. /**
  747. * This example shows how to configure ownCloud to store all files in a
  748. * swift object storage.
  749. *
  750. * It is important to note that ownCloud in object store mode will expect
  751. * exclusive access to the object store container because it only stores the
  752. * binary data for each file. The metadata is currently kept in the local
  753. * database for performance reasons.
  754. *
  755. * WARNING: The current implementation is incompatible with any app that uses
  756. * direct file IO and circumvents our virtual filesystem. That includes
  757. * Encryption and Gallery. Gallery will store thumbnails directly in the
  758. * filesystem and encryption will cause severe overhead because key files need
  759. * to be fetched in addition to any requested file.
  760. *
  761. * One way to test is applying for a trystack account at http://trystack.org/
  762. */
  763. 'objectstore' => array(
  764. 'class' => 'OC\\Files\\ObjectStore\\Swift',
  765. 'arguments' => array(
  766. // trystack will user your facebook id as the user name
  767. 'username' => 'facebook100000123456789',
  768. // in the trystack dashboard go to user -> settings -> API Password to
  769. // generate a password
  770. 'password' => 'Secr3tPaSSWoRdt7',
  771. // must already exist in the objectstore, name can be different
  772. 'container' => 'owncloud',
  773. // create the container if it does not exist. default is false
  774. 'autocreate' => true,
  775. // required, dev-/trystack defaults to 'RegionOne'
  776. 'region' => 'RegionOne',
  777. // The Identity / Keystone endpoint
  778. 'url' => 'http://8.21.28.222:5000/v2.0',
  779. // required on dev-/trystack
  780. 'tenantName' => 'facebook100000123456789',
  781. // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
  782. // if omitted
  783. 'serviceName' => 'swift',
  784. ),
  785. ),
  786. /**
  787. * Database types that are supported for installation.
  788. *
  789. * Available:
  790. * - sqlite (SQLite3 - Not in Enterprise Edition)
  791. * - mysql (MySQL)
  792. * - pgsql (PostgreSQL)
  793. * - oci (Oracle - Enterprise Edition Only)
  794. */
  795. 'supportedDatabases' => array(
  796. 'sqlite',
  797. 'mysql',
  798. 'pgsql',
  799. 'oci',
  800. ),
  801. /**
  802. * All other config options
  803. */
  804. /**
  805. * Blacklist a specific file or files and disallow the upload of files
  806. * with this name. ``.htaccess`` is blocked by default.
  807. * WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.
  808. */
  809. 'blacklisted_files' => array('.htaccess'),
  810. /**
  811. * Define a default folder for shared files and folders other than root.
  812. */
  813. 'share_folder' => '/',
  814. /**
  815. * If you are applying a theme to ownCloud, enter the name of the theme here.
  816. * The default location for themes is ``owncloud/themes/``.
  817. */
  818. 'theme' => '',
  819. /**
  820. * The default cipher for encrypting files. Currently AES-128-CFB and
  821. * AES-256-CFB are supported.
  822. */
  823. 'cipher' => 'AES-256-CFB',
  824. /**
  825. * The minimum ownCloud desktop client version that will be allowed to sync with
  826. * this server instance. All connections made from earlier clients will be denied
  827. * by the server. Defaults to the minimum officially supported ownCloud version at
  828. * the time of release of this server version.
  829. *
  830. * When changing this, note that older unsupported versions of the ownCloud desktop
  831. * client may not function as expected, and could lead to permanent data loss for
  832. * clients or other unexpected results.
  833. */
  834. 'minimum.supported.desktop.version' => '1.7.0',
  835. /**
  836. * EXPERIMENTAL: option whether to include external storage in quota
  837. * calculation, defaults to false.
  838. */
  839. 'quota_include_external_storage' => false,
  840. /**
  841. * Specifies how often the filesystem is checked for changes made outside
  842. * ownCloud.
  843. *
  844. * 0 -> Never check the filesystem for outside changes, provides a performance
  845. * increase when it's certain that no changes are made directly to the
  846. * filesystem
  847. *
  848. * 1 -> Check each file or folder at most once per request, recommended for
  849. * general use if outside changes might happen.
  850. *
  851. * 2 -> Check every time the filesystem is used, causes a performance hit when
  852. * using external storages, not recommended for regular use.
  853. */
  854. 'filesystem_check_changes' => 1,
  855. /**
  856. * All css and js files will be served by the web server statically in one js
  857. * file and one css file if this is set to ``true``. This improves performance.
  858. */
  859. 'asset-pipeline.enabled' => false,
  860. /**
  861. * The parent of the directory where css and js assets will be stored if
  862. * piplelining is enabled; this defaults to the ownCloud directory. The assets
  863. * will be stored in a subdirectory of this directory named 'assets'. The
  864. * server *must* be configured to serve that directory as $WEBROOT/assets.
  865. * You will only likely need to change this if the main ownCloud directory
  866. * is not writeable by the web server in your configuration.
  867. */
  868. 'assetdirectory' => '/var/www/owncloud',
  869. /**
  870. * Where ``mount.json`` file should be stored, defaults to ``data/mount.json``
  871. */
  872. 'mount_file' => 'data/mount.json',
  873. /**
  874. * When ``true``, prevent ownCloud from changing the cache due to changes in the
  875. * filesystem for all storage.
  876. */
  877. 'filesystem_cache_readonly' => false,
  878. /**
  879. * Secret used by ownCloud for various purposes, e.g. to encrypt data. If you
  880. * lose this string there will be data corruption.
  881. */
  882. 'secret' => '',
  883. /**
  884. * List of trusted proxy servers
  885. */
  886. 'trusted_proxies' => array('203.0.113.45', '198.51.100.128'),
  887. /**
  888. * Headers that should be trusted as client IP address in combination with
  889. * `trusted_proxies`
  890. */
  891. 'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
  892. /**
  893. * max file size for animating gifs on public-sharing-site.
  894. * If the gif is bigger, it'll show a static preview
  895. *
  896. * Value represents the maximum filesize in megabytes. Default is ``10``. Set to
  897. * ``-1`` for no limit.
  898. */
  899. 'max_filesize_animated_gifs_public_sharing' => 10,
  900. /**
  901. * Enables transactional file locking.
  902. * This is disabled by default as it is still beta.
  903. *
  904. * Prevents concurrent processes to access the same files
  905. * at the same time. Can help prevent side effects that would
  906. * be caused by concurrent operations. Mainly relevant for
  907. * very large installations with many users working with
  908. * shared files.
  909. *
  910. * WARNING: BETA quality
  911. */
  912. 'filelocking.enabled' => false,
  913. /**
  914. * Memory caching backend for file locking
  915. *
  916. * Because most memcache backends can clean values without warning using redis
  917. * is highly recommended to *avoid data loss*.
  918. */
  919. 'memcache.locking' => '\\OC\\Memcache\\Redis',
  920. /**
  921. * This entry is just here to show a warning in case somebody copied the sample
  922. * configuration. DO NOT ADD THIS SWITCH TO YOUR CONFIGURATION!
  923. *
  924. * If you, brave person, have read until here be aware that you should not
  925. * modify *ANY* settings in this file without reading the documentation.
  926. */
  927. 'copied_sample_config' => true,
  928. );