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.

932 lines
27 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
13 years ago
11 years ago
11 years ago
12 years ago
11 years ago
  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,
  46. * and you should never use it.
  47. *
  48. * @deprecated This salt is deprecated and only used for legacy-compatibility, developers
  49. * 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. (SQLite is
  72. * 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)
  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 'WAL' or 'DELETE'
  128. * 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 allows you to configure alternate authentication
  199. * backends. Supported backends are IMAP (OC_User_IMAP), SMB (OC_User_SMB), and
  200. * 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. * Check 3rd party apps to make sure they are using the private API and not the
  360. * public API. If the app uses the private API it cannot be installed.
  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. * This uses PHP.date formatting; see http://php.net/manual/en/function.date.php
  416. */
  417. 'logdateformat' => 'F d, Y H:i:s',
  418. /**
  419. * The default timezone for logfiles is UTC. You may change this; see
  420. * http://php.net/manual/en/timezones.php
  421. */
  422. 'logtimezone' => 'Europe/Berlin',
  423. /**
  424. * Append all database queries and parameters to the log file. Use this only for
  425. * debugging, as your logfile will become huge.
  426. */
  427. 'log_query' => false,
  428. /**
  429. * Log successful cron runs.
  430. */
  431. 'cron_log' => true,
  432. /**
  433. * Enables log rotation and limits the total size of logfiles. The default is 0,
  434. * or no rotation. Specify a size in bytes, for example 104857600 (100 megabytes
  435. * = 100 * 1024 * 1024 bytes). A new logfile is created with a new name when the
  436. * old logfile reaches your limit. The total size of all logfiles is double the
  437. * ``log_rotate_sizerotation`` value.
  438. */
  439. 'log_rotate_size' => false,
  440. /**
  441. * Alternate Code Locations
  442. *
  443. * Some of the ownCloud code may be stored in alternate locations.
  444. */
  445. /**
  446. * ownCloud uses some 3rd party PHP components to provide certain functionality.
  447. * These components are shipped as part of the software package and reside in
  448. * ``owncloud/3rdparty``. Use this option to configure a different location.
  449. */
  450. '3rdpartyroot' => '',
  451. /**
  452. * If you have an alternate ``3rdpartyroot``, you must also configure the URL as
  453. * seen by a Web browser.
  454. */
  455. '3rdpartyurl' => '',
  456. /**
  457. * This section is for configuring the download links for ownCloud clients, as
  458. * seen in the first-run wizard and on Personal pages.
  459. */
  460. 'customclient_desktop' =>
  461. 'http://owncloud.org/sync-clients/',
  462. 'customclient_android' =>
  463. 'https://play.google.com/store/apps/details?id=com.owncloud.android',
  464. 'customclient_ios' =>
  465. 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8',
  466. /**
  467. * Apps
  468. *
  469. * Options for the Apps folder, Apps store, and App code checker.
  470. */
  471. /**
  472. * When enabled, admins may install apps from the ownCloud app store.
  473. * The app store is disabled by default for ownCloud Enterprise Edition
  474. */
  475. 'appstoreenabled' => true,
  476. /**
  477. * The URL of the appstore to use.
  478. */
  479. 'appstoreurl' => 'https://api.owncloud.com/v1',
  480. /**
  481. * Use the ``apps_paths`` parameter to set the location of the Apps directory,
  482. * which should be scanned for available apps, and where user-specific apps
  483. * should be installed from the Apps store. The ``path`` defines the absolute
  484. * file system path to the app folder. The key ``url`` defines the HTTP web path
  485. * to that folder, starting from the ownCloud web root. The key ``writable``
  486. * indicates if a web server can write files to that folder.
  487. */
  488. 'apps_paths' => array(
  489. array(
  490. 'path'=> '/var/www/owncloud/apps',
  491. 'url' => '/apps',
  492. 'writable' => true,
  493. ),
  494. ),
  495. /**
  496. * @see appcodechecker
  497. */
  498. /**
  499. * Previews
  500. *
  501. * ownCloud supports previews of image files, the covers of MP3 files, and text
  502. * files. These options control enabling and disabling previews, and thumbnail
  503. * size.
  504. */
  505. /**
  506. * By default, ownCloud can generate previews for the following filetypes:
  507. *
  508. * - Images files
  509. * - Covers of MP3 files
  510. * - Text documents
  511. *
  512. * Valid values are ``true``, to enable previews, or
  513. * ``false``, to disable previews
  514. */
  515. 'enable_previews' => true,
  516. /**
  517. * The maximum width, in pixels, of a preview. A value of ``null`` means there
  518. * is no limit.
  519. */
  520. 'preview_max_x' => null,
  521. /**
  522. * The maximum height, in pixels, of a preview. A value of ``null`` means there
  523. * is no limit.
  524. */
  525. 'preview_max_y' => null,
  526. /**
  527. * If a lot of small pictures are stored on the ownCloud instance and the
  528. * preview system generates blurry previews, you might want to consider setting
  529. * a maximum scale factor. By default, pictures are upscaled to 10 times the
  530. * original size. A value of ``1`` or ``null`` disables scaling.
  531. */
  532. 'preview_max_scale_factor' => 10,
  533. /**
  534. * custom path for LibreOffice/OpenOffice binary
  535. */
  536. 'preview_libreoffice_path' => '/usr/bin/libreoffice',
  537. /**
  538. * Use this if LibreOffice/OpenOffice requires additional arguments.
  539. */
  540. 'preview_office_cl_parameters' =>
  541. ' --headless --nologo --nofirststartwizard --invisible --norestore '.
  542. '-convert-to pdf -outdir ',
  543. /**
  544. * Only register providers that have been explicitly enabled
  545. *
  546. * The following providers are enabled by default:
  547. *
  548. * - OC\Preview\Image
  549. * - OC\Preview\MarkDown
  550. * - OC\Preview\MP3
  551. * - OC\Preview\TXT
  552. *
  553. * The following providers are disabled by default due to performance or privacy
  554. * concerns:
  555. *
  556. * - OC\Preview\Illustrator
  557. * - OC\Preview\Movie
  558. * - OC\Preview\MSOffice2003
  559. * - OC\Preview\MSOffice2007
  560. * - OC\Preview\MSOfficeDoc
  561. * - OC\Preview\OpenDocument
  562. * - OC\Preview\PDF
  563. * - OC\Preview\Photoshop
  564. * - OC\Preview\Postscript
  565. * - OC\Preview\StarOffice
  566. * - OC\Preview\SVG
  567. * - OC\Preview\TIFF
  568. */
  569. 'enabledPreviewProviders' => array(
  570. 'OC\Preview\Image',
  571. 'OC\Preview\MP3',
  572. 'OC\Preview\TXT',
  573. 'OC\Preview\MarkDown'
  574. ),
  575. /**
  576. * Maintenance
  577. *
  578. * These options are for halting user activity when you are performing server
  579. * maintenance.
  580. */
  581. /**
  582. * Enable maintenance mode to disable ownCloud
  583. *
  584. * If you want to prevent users to login to ownCloud before you start doing some
  585. * maintenance work, you need to set the value of the maintenance parameter to
  586. * true. Please keep in mind that users who are already logged-in are kicked out
  587. * of ownCloud instantly.
  588. */
  589. 'maintenance' => false,
  590. /**
  591. * When set to ``true``, the ownCloud instance will be unavailable for all users
  592. * who are not in the ``admin`` group.
  593. */
  594. 'singleuser' => false,
  595. /**
  596. * SSL
  597. */
  598. /**
  599. * Change this to ``true`` to require HTTPS for all connections, and to reject
  600. * HTTP requests.
  601. */
  602. 'forcessl' => false,
  603. /**
  604. * Change this to ``true`` to require HTTPS connections also for all subdomains.
  605. * Works only together when `forcessl` is set to true.
  606. */
  607. 'forceSSLforSubdomains' => false,
  608. /**
  609. * Extra SSL options to be used for configuration.
  610. */
  611. 'openssl' => array(
  612. 'config' => '/absolute/location/of/openssl.cnf',
  613. ),
  614. /**
  615. * Miscellaneous
  616. */
  617. /**
  618. * Blacklist a specific file or files and disallow the upload of files
  619. * with this name. ``.htaccess`` is blocked by default.
  620. * WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.
  621. */
  622. 'blacklisted_files' => array('.htaccess'),
  623. /**
  624. * Define a default folder for shared files and folders other than root.
  625. */
  626. 'share_folder' => '/',
  627. /**
  628. * If you are applying a theme to ownCloud, enter the name of the theme here.
  629. * The default location for themes is ``owncloud/themes/``.
  630. */
  631. 'theme' => '',
  632. /**
  633. * X-Frame-Restriction is a header which prevents browsers from showing the site
  634. * inside an iframe. This is be used to prevent clickjacking. It is risky to
  635. * disable this, so leave it set at ``true``.
  636. */
  637. 'xframe_restriction' => true,
  638. /**
  639. * The default cipher for encrypting files. Currently AES-128-CFB and
  640. * AES-256-CFB are supported.
  641. */
  642. 'cipher' => 'AES-256-CFB',
  643. /**
  644. * Connection details for redis to use for memory caching.
  645. * Redis is only used if other memory cache options (xcache, apc, apcu) are
  646. * not available.
  647. */
  648. 'redis' => array(
  649. 'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
  650. 'port' => 6379,
  651. 'timeout' => 0.0
  652. ),
  653. /**
  654. * Server details for one or more memcached servers to use for memory caching.
  655. * Memcache is only used if other memory cache options (xcache, apc, apcu, redis) are
  656. * not available.
  657. */
  658. 'memcached_servers' => array(
  659. // hostname, port and optional weight. Also see:
  660. // http://www.php.net/manual/en/memcached.addservers.php
  661. // http://www.php.net/manual/en/memcached.addserver.php
  662. array('localhost', 11211),
  663. //array('other.host.local', 11211),
  664. ),
  665. /**
  666. * Location of the cache folder, defaults to ``data/$user/cache`` where
  667. * ``$user`` is the current user. When specified, the format will change to
  668. * ``$cache_path/$user`` where ``$cache_path`` is the configured cache directory
  669. * and ``$user`` is the user.
  670. */
  671. 'cache_path' => '',
  672. /**
  673. * EXPERIMENTAL: option whether to include external storage in quota
  674. * calculation, defaults to false.
  675. */
  676. 'quota_include_external_storage' => false,
  677. /**
  678. * Specifies how often the filesystem is checked for changes made outside
  679. * ownCloud.
  680. *
  681. * 0 -> Never check the filesystem for outside changes, provides a performance
  682. * increase when it's certain that no changes are made directly to the
  683. * filesystem
  684. *
  685. * 1 -> Check each file or folder at most once per request, recommended for
  686. * general use if outside changes might happen.
  687. *
  688. * 2 -> Check every time the filesystem is used, causes a performance hit when
  689. * using external storages, not recommended for regular use.
  690. */
  691. 'filesystem_check_changes' => 1,
  692. /**
  693. * All css and js files will be served by the web server statically in one js
  694. * file and one css file if this is set to ``true``.
  695. */
  696. 'asset-pipeline.enabled' => false,
  697. /**
  698. * The parent of the directory where css and js assets will be stored if
  699. * piplelining is enabled; this defaults to the ownCloud directory. The assets
  700. * will be stored in a subdirectory of this directory named 'assets'. The
  701. * server *must* be configured to serve that directory as $WEBROOT/assets.
  702. * You will only likely need to change this if the main ownCloud directory
  703. * is not writeable by the web server in your configuration.
  704. */
  705. 'assetdirectory' => '/var/www/owncloud',
  706. /**
  707. * Where ``mount.json`` file should be stored, defaults to ``data/mount.json``
  708. */
  709. 'mount_file' => 'data/mount.json',
  710. /**
  711. * When ``true``, prevent ownCloud from changing the cache due to changes in the
  712. * filesystem for all storage.
  713. */
  714. 'filesystem_cache_readonly' => false,
  715. /**
  716. * The example below shows how to configure ownCloud to store all files in a
  717. * swift object storage.
  718. *
  719. * It is important to note that ownCloud in object store mode will expect
  720. * exclusive access to the object store container because it only stores the
  721. * binary data for each file. The metadata is currently kept in the local
  722. * database for performance reasons.
  723. *
  724. * WARNING: The current implementation is incompatible with any app that uses
  725. * direct file IO and circumvents our virtual filesystem. That includes
  726. * Encryption and Gallery. Gallery will store thumbnails directly in the
  727. * filesystem and encryption will cause severe overhead because key files need
  728. * to be fetched in addition to any requested file.
  729. *
  730. * One way to test is applying for a trystack account at http://trystack.org/
  731. */
  732. 'objectstore' => array(
  733. 'class' => 'OC\\Files\\ObjectStore\\Swift',
  734. 'arguments' => array(
  735. // trystack will user your facebook id as the user name
  736. 'username' => 'facebook100000123456789',
  737. // in the trystack dashboard go to user -> settings -> API Password to
  738. // generate a password
  739. 'password' => 'Secr3tPaSSWoRdt7',
  740. // must already exist in the objectstore, name can be different
  741. 'container' => 'owncloud',
  742. // create the container if it does not exist. default is false
  743. 'autocreate' => true,
  744. // required, dev-/trystack defaults to 'RegionOne'
  745. 'region' => 'RegionOne',
  746. // The Identity / Keystone endpoint
  747. 'url' => 'http://8.21.28.222:5000/v2.0',
  748. // required on dev-/trystack
  749. 'tenantName' => 'facebook100000123456789',
  750. // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
  751. // if omitted
  752. 'serviceName' => 'swift',
  753. ),
  754. ),
  755. /**
  756. * Database types that are supported for installation.
  757. *
  758. * Available:
  759. * - sqlite (SQLite3 - Community Edition Only)
  760. * - mysql (MySQL)
  761. * - pgsql (PostgreSQL)
  762. * - oci (Oracle - Enterprise Edition Only)
  763. * - mssql (Microsoft SQL Server - Enterprise Edition Only)
  764. */
  765. 'supportedDatabases' => array(
  766. 'sqlite',
  767. 'mysql',
  768. 'pgsql',
  769. 'oci',
  770. 'mssql'
  771. ),
  772. /**
  773. * Custom CSP policy, changing this will overwrite the standard policy
  774. */
  775. 'custom_csp_policy' =>
  776. "default-src 'self'; script-src 'self' 'unsafe-eval'; ".
  777. "style-src 'self' 'unsafe-inline'; frame-src *; img-src *; ".
  778. "font-src 'self' data:; media-src *; connect-src *",
  779. /**
  780. * All other config options
  781. */
  782. /**
  783. * Secret used by ownCloud for various purposes, e.g. to encrypt data. If you
  784. * lose this string there will be data corruption.
  785. */
  786. 'secret' => '',
  787. /**
  788. * List of trusted proxy servers
  789. */
  790. 'trusted_proxies' => array('203.0.113.45', '198.51.100.128'),
  791. /**
  792. * Headers that should be trusted as client IP address in combination with
  793. * `trusted_proxies`
  794. */
  795. 'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
  796. /**
  797. * This entry is just here to show a warning in case somebody copied the sample
  798. * configuration. DO NOT ADD THIS SWITCH TO YOUR CONFIGURATION!
  799. *
  800. * If you, brave person, have read until here be aware that you should not
  801. * modify *ANY* settings in this file without reading the documentation.
  802. */
  803. 'copied_sample_config' => true,
  804. );