config.sample.php 28 KB

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