config.sample.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  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' => 2048,
  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' => 2048,
  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\PNG
  570. * - OC\Preview\JPEG
  571. * - OC\Preview\GIF
  572. * - OC\Preview\BMP
  573. * - OC\Preview\XBitmap
  574. * - OC\Preview\MarkDown
  575. * - OC\Preview\MP3
  576. * - OC\Preview\TXT
  577. *
  578. * The following providers are disabled by default due to performance or privacy
  579. * concerns:
  580. *
  581. * - OC\Preview\Illustrator
  582. * - OC\Preview\Movie
  583. * - OC\Preview\MSOffice2003
  584. * - OC\Preview\MSOffice2007
  585. * - OC\Preview\MSOfficeDoc
  586. * - OC\Preview\OpenDocument
  587. * - OC\Preview\PDF
  588. * - OC\Preview\Photoshop
  589. * - OC\Preview\Postscript
  590. * - OC\Preview\StarOffice
  591. * - OC\Preview\SVG
  592. * - OC\Preview\TIFF
  593. * - OC\Preview\Font
  594. *
  595. * .. note:: Troubleshooting steps for the MS Word previews are available
  596. * at the :doc:`../configuration_files/collaborative_documents_configuration`
  597. * section of the Administrators Manual.
  598. *
  599. * The following providers are not available in Microsoft Windows:
  600. *
  601. * - OC\Preview\Movie
  602. * - OC\Preview\MSOfficeDoc
  603. * - OC\Preview\MSOffice2003
  604. * - OC\Preview\MSOffice2007
  605. * - OC\Preview\OpenDocument
  606. * - OC\Preview\StarOffice
  607. */
  608. 'enabledPreviewProviders' => array(
  609. 'OC\Preview\PNG',
  610. 'OC\Preview\JPEG',
  611. 'OC\Preview\GIF',
  612. 'OC\Preview\BMP',
  613. 'OC\Preview\XBitmap',
  614. 'OC\Preview\MP3',
  615. 'OC\Preview\TXT',
  616. 'OC\Preview\MarkDown'
  617. ),
  618. /**
  619. * LDAP
  620. *
  621. * Global settings used by LDAP User and Group Backend
  622. */
  623. /**
  624. * defines the interval in minutes for the background job that checks user
  625. * existance and marks them as ready to be cleaned up. The number is always
  626. * minutes. Setting it to 0 disables the feature.
  627. * See command line (occ) methods ldap:show-remnants and user:delete
  628. */
  629. 'ldapUserCleanupInterval' => 51,
  630. /**
  631. * Maintenance
  632. *
  633. * These options are for halting user activity when you are performing server
  634. * maintenance.
  635. */
  636. /**
  637. * Enable maintenance mode to disable ownCloud
  638. *
  639. * If you want to prevent users to login to ownCloud before you start doing some
  640. * maintenance work, you need to set the value of the maintenance parameter to
  641. * true. Please keep in mind that users who are already logged-in are kicked out
  642. * of ownCloud instantly.
  643. */
  644. 'maintenance' => false,
  645. /**
  646. * When set to ``true``, the ownCloud instance will be unavailable for all users
  647. * who are not in the ``admin`` group.
  648. */
  649. 'singleuser' => false,
  650. /**
  651. * SSL
  652. */
  653. /**
  654. * Extra SSL options to be used for configuration.
  655. */
  656. 'openssl' => array(
  657. 'config' => '/absolute/location/of/openssl.cnf',
  658. ),
  659. /**
  660. * Miscellaneous
  661. */
  662. /**
  663. * Blacklist a specific file or files and disallow the upload of files
  664. * with this name. ``.htaccess`` is blocked by default.
  665. * WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.
  666. */
  667. 'blacklisted_files' => array('.htaccess'),
  668. /**
  669. * Define a default folder for shared files and folders other than root.
  670. */
  671. 'share_folder' => '/',
  672. /**
  673. * If you are applying a theme to ownCloud, enter the name of the theme here.
  674. * The default location for themes is ``owncloud/themes/``.
  675. */
  676. 'theme' => '',
  677. /**
  678. * The default cipher for encrypting files. Currently AES-128-CFB and
  679. * AES-256-CFB are supported.
  680. */
  681. 'cipher' => 'AES-256-CFB',
  682. /**
  683. * Memory caching backend configuration
  684. *
  685. * Available cache backends:
  686. * - \OC\Memcache\APC Alternative PHP Cache backend
  687. * - \OC\Memcache\APCu APC user backend
  688. * - \OC\Memcache\ArrayCache In-memory array-based backend (not recommended)
  689. * - \OC\Memcache\Memcached Memcached backend
  690. * - \OC\Memcache\Redis Redis backend
  691. * - \OC\Memcache\XCache XCache backend
  692. */
  693. /**
  694. * Memory caching backend for locally stored data
  695. * Used for host-specific data, e.g. file paths
  696. */
  697. 'memcache.local' => '\OC\Memcache\APCu',
  698. /**
  699. * Memory caching backend for distributed data
  700. * Used for installation-specific data, e.g. database caching
  701. * If unset, defaults to the value of memcache.local
  702. */
  703. 'memcache.distributed' => '\OC\Memcache\Memcached',
  704. /**
  705. * Connection details for redis to use for memory caching.
  706. */
  707. 'redis' => array(
  708. 'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
  709. 'port' => 6379,
  710. 'timeout' => 0.0
  711. ),
  712. /**
  713. * Server details for one or more memcached servers to use for memory caching.
  714. */
  715. 'memcached_servers' => array(
  716. // hostname, port and optional weight. Also see:
  717. // http://www.php.net/manual/en/memcached.addservers.php
  718. // http://www.php.net/manual/en/memcached.addserver.php
  719. array('localhost', 11211),
  720. //array('other.host.local', 11211),
  721. ),
  722. /**
  723. * Location of the cache folder, defaults to ``data/$user/cache`` where
  724. * ``$user`` is the current user. When specified, the format will change to
  725. * ``$cache_path/$user`` where ``$cache_path`` is the configured cache directory
  726. * and ``$user`` is the user.
  727. */
  728. 'cache_path' => '',
  729. /**
  730. * EXPERIMENTAL: option whether to include external storage in quota
  731. * calculation, defaults to false.
  732. */
  733. 'quota_include_external_storage' => false,
  734. /**
  735. * Specifies how often the filesystem is checked for changes made outside
  736. * ownCloud.
  737. *
  738. * 0 -> Never check the filesystem for outside changes, provides a performance
  739. * increase when it's certain that no changes are made directly to the
  740. * filesystem
  741. *
  742. * 1 -> Check each file or folder at most once per request, recommended for
  743. * general use if outside changes might happen.
  744. *
  745. * 2 -> Check every time the filesystem is used, causes a performance hit when
  746. * using external storages, not recommended for regular use.
  747. */
  748. 'filesystem_check_changes' => 1,
  749. /**
  750. * All css and js files will be served by the web server statically in one js
  751. * file and one css file if this is set to ``true``.
  752. */
  753. 'asset-pipeline.enabled' => false,
  754. /**
  755. * The parent of the directory where css and js assets will be stored if
  756. * piplelining is enabled; this defaults to the ownCloud directory. The assets
  757. * will be stored in a subdirectory of this directory named 'assets'. The
  758. * server *must* be configured to serve that directory as $WEBROOT/assets.
  759. * You will only likely need to change this if the main ownCloud directory
  760. * is not writeable by the web server in your configuration.
  761. */
  762. 'assetdirectory' => '/var/www/owncloud',
  763. /**
  764. * Where ``mount.json`` file should be stored, defaults to ``data/mount.json``
  765. */
  766. 'mount_file' => 'data/mount.json',
  767. /**
  768. * When ``true``, prevent ownCloud from changing the cache due to changes in the
  769. * filesystem for all storage.
  770. */
  771. 'filesystem_cache_readonly' => false,
  772. /**
  773. * The example below shows how to configure ownCloud to store all files in a
  774. * swift object storage.
  775. *
  776. * It is important to note that ownCloud in object store mode will expect
  777. * exclusive access to the object store container because it only stores the
  778. * binary data for each file. The metadata is currently kept in the local
  779. * database for performance reasons.
  780. *
  781. * WARNING: The current implementation is incompatible with any app that uses
  782. * direct file IO and circumvents our virtual filesystem. That includes
  783. * Encryption and Gallery. Gallery will store thumbnails directly in the
  784. * filesystem and encryption will cause severe overhead because key files need
  785. * to be fetched in addition to any requested file.
  786. *
  787. * One way to test is applying for a trystack account at http://trystack.org/
  788. */
  789. 'objectstore' => array(
  790. 'class' => 'OC\\Files\\ObjectStore\\Swift',
  791. 'arguments' => array(
  792. // trystack will user your facebook id as the user name
  793. 'username' => 'facebook100000123456789',
  794. // in the trystack dashboard go to user -> settings -> API Password to
  795. // generate a password
  796. 'password' => 'Secr3tPaSSWoRdt7',
  797. // must already exist in the objectstore, name can be different
  798. 'container' => 'owncloud',
  799. // create the container if it does not exist. default is false
  800. 'autocreate' => true,
  801. // required, dev-/trystack defaults to 'RegionOne'
  802. 'region' => 'RegionOne',
  803. // The Identity / Keystone endpoint
  804. 'url' => 'http://8.21.28.222:5000/v2.0',
  805. // required on dev-/trystack
  806. 'tenantName' => 'facebook100000123456789',
  807. // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
  808. // if omitted
  809. 'serviceName' => 'swift',
  810. ),
  811. ),
  812. /**
  813. * Database types that are supported for installation.
  814. *
  815. * Available:
  816. * - sqlite (SQLite3 - Community Edition Only)
  817. * - mysql (MySQL)
  818. * - pgsql (PostgreSQL)
  819. * - oci (Oracle - Enterprise Edition Only)
  820. * - mssql (Microsoft SQL Server - Enterprise Edition Only)
  821. */
  822. 'supportedDatabases' => array(
  823. 'sqlite',
  824. 'mysql',
  825. 'pgsql',
  826. 'oci',
  827. 'mssql'
  828. ),
  829. /**
  830. * All other config options
  831. */
  832. /**
  833. * Secret used by ownCloud for various purposes, e.g. to encrypt data. If you
  834. * lose this string there will be data corruption.
  835. */
  836. 'secret' => '',
  837. /**
  838. * List of trusted proxy servers
  839. */
  840. 'trusted_proxies' => array('203.0.113.45', '198.51.100.128'),
  841. /**
  842. * Headers that should be trusted as client IP address in combination with
  843. * `trusted_proxies`
  844. */
  845. 'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
  846. /**
  847. * max file size for animating gifs on public-sharing-site.
  848. * If the gif is bigger, it'll show a static preview
  849. *
  850. * Value represents the maximum filesize in megabytes
  851. * Default is 10
  852. * Set to -1 for no limit
  853. */
  854. 'max_filesize_animated_gifs_public_sharing' => 10,
  855. /**
  856. * This entry is just here to show a warning in case somebody copied the sample
  857. * configuration. DO NOT ADD THIS SWITCH TO YOUR CONFIGURATION!
  858. *
  859. * If you, brave person, have read until here be aware that you should not
  860. * modify *ANY* settings in this file without reading the documentation.
  861. */
  862. 'copied_sample_config' => true,
  863. );