Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.94 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * This configuration file is only provided to document the different
  5. * configuration options and their usage.
  6. *
  7. * DO NOT COMPLETELY BASE YOUR CONFIGURATION FILE ON THIS SAMPLE. THIS MAY BREAK
  8. * YOUR INSTANCE. Instead, manually copy configuration switches that you
  9. * consider important for your instance to your working ``config.php``, and
  10. * apply configuration options that are pertinent for your instance.
  11. *
  12. * This file is used to generate the configuration documentation.
  13. * Please consider following requirements of the current parser:
  14. * * all comments need to start with `/**` and end with ` *\/` - each on their
  15. * own line
  16. * * add a `@see CONFIG_INDEX` to copy a previously described config option
  17. * also to this line
  18. * * everything between the ` *\/` and the next `/**` will be treated as the
  19. * config option
  20. * * use RST syntax
  21. */
  22.  
  23. $CONFIG = array(
  24.  
  25.  
  26. /**
  27. * Default Parameters
  28. *
  29. * These parameters are configured by the ownCloud installer, and are required
  30. * for your ownCloud server to operate.
  31. */
  32.  
  33.  
  34. /**
  35. * This is a unique identifier for your ownCloud installation, created
  36. * automatically by the installer. This example is for documentation only,
  37. * and you should never use it because it will not work. A valid ``instanceid``
  38. * is created when you install ownCloud.
  39. *
  40. * 'instanceid' => 'd3c944a9a',
  41. */
  42. 'instanceid' => '',
  43.  
  44. /**
  45. * The salt used to hash all passwords, auto-generated by the ownCloud
  46. * installer. (There are also per-user salts.) If you lose this salt you lose
  47. * all your passwords. This example is for documentation only, and you should
  48. * never use it.
  49. *
  50. * @deprecated This salt is deprecated and only used for legacy-compatibility,
  51. * developers should *NOT* use this value for anything nowadays.
  52. *
  53. * 'passwordsalt' => 'd3c944a9af095aa08f',
  54. */
  55. 'passwordsalt' => '',
  56.  
  57. /**
  58. * Your list of trusted domains that users can log into. Specifying trusted
  59. * domains prevents host header poisoning. Do not remove this, as it performs
  60. * necessary security checks.
  61. */
  62. 'trusted_domains' =>
  63. array (
  64. 'demo.example.org',
  65. 'otherdomain.example.org',
  66. ),
  67.  
  68.  
  69. /**
  70. * Where user files are stored; this defaults to ``data/`` in the ownCloud
  71. * directory. The SQLite database is also stored here, when you use SQLite.
  72. * (SQLite is not available in ownCloud Enterprise Edition)
  73. */
  74. 'datadirectory' => '/var/www/owncloud/data',
  75.  
  76. /**
  77. * The current version number of your ownCloud installation. This is set up
  78. * during installation and update, so you shouldn't need to change it.
  79. */
  80. 'version' => '',
  81.  
  82. /**
  83. * Identifies the database used with this installation. See also config option
  84. * ``supportedDatabases``
  85. *
  86. * Available:
  87. * - sqlite (SQLite3 - Not in Enterprise Edition)
  88. * - mysql (MySQL/MariaDB)
  89. * - pgsql (PostgreSQL)
  90. * - oci (Oracle - Enterprise Edition Only)
  91. */
  92. 'dbtype' => 'sqlite',
  93.  
  94. /**
  95. * Your host server name, for example ``localhost``, ``hostname``,
  96. * ``hostname.example.com``, or the IP address. To specify a port use
  97. * ``hostname:####``; to specify a Unix socket use
  98. * ``localhost:/path/to/socket``.
  99. */
  100. 'dbhost' => '',
  101.  
  102. /**
  103. * The name of the ownCloud database, which is set during installation. You
  104. * should not need to change this.
  105. */
  106. 'dbname' => 'owncloud',
  107.  
  108. /**
  109. * The user that ownCloud uses to write to the database. This must be unique
  110. * across ownCloud instances using the same SQL database. This is set up during
  111. * installation, so you shouldn't need to change it.
  112. */
  113. 'dbuser' => '',
  114.  
  115. /**
  116. * The password for the database user. This is set up during installation, so
  117. * you shouldn't need to change it.
  118. */
  119. 'dbpassword' => '',
  120.  
  121. /**
  122. * Prefix for the ownCloud tables in the database.
  123. */
  124. 'dbtableprefix' => '',
  125.  
  126. /**
  127. * Indicates whether the ownCloud instance was installed successfully; ``true``
  128. * indicates a successful installation, and ``false`` indicates an unsuccessful
  129. * installation.
  130. */
  131. 'installed' => false,
  132.  
  133.  
  134. /**
  135. * User Experience
  136. *
  137. * These optional parameters control some aspects of the user interface. Default
  138. * values, where present, are shown.
  139. */
  140.  
  141. /**
  142. * This sets the default language on your ownCloud server, using ISO_639-1
  143. * language codes such as ``en`` for English, ``de`` for German, and ``fr`` for
  144. * French. It overrides automatic language detection on public pages like login
  145. * or shared items. User's language preferences configured under "personal ->
  146. * language" override this setting after they have logged in.
  147. */
  148. 'default_language' => 'en',
  149.  
  150. /**
  151. * Set the default app to open on login. Use the app names as they appear in the
  152. * URL after clicking them in the Apps menu, such as documents, calendar, and
  153. * gallery. You can use a comma-separated list of app names, so if the first
  154. * app is not enabled for a user then ownCloud will try the second one, and so
  155. * on. If no enabled apps are found it defaults to the Files app.
  156. */
  157. 'defaultapp' => 'files',
  158.  
  159. /**
  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. /**
  166. * ``true`` enables avatars, or user profile photos. These appear on the User
  167. * page, on user's Personal pages and are used by some apps (contacts, mail,
  168. * etc). ``false`` disables them.
  169. */
  170. 'enable_avatars' => true,
  171.  
  172. /**
  173. * ``true`` allows users to change their display names (on their Personal
  174. * pages), and ``false`` prevents them from changing their display names.
  175. */
  176. 'allow_user_to_change_display_name' => true,
  177.  
  178. /**
  179. * Lifetime of the remember login cookie, which is set when the user clicks the
  180. * ``remember`` checkbox on the login screen. The default is 15 days, expressed
  181. * in seconds.
  182. */
  183. 'remember_login_cookie_lifetime' => 60*60*24*15,
  184.  
  185. /**
  186. * The lifetime of a session after inactivity; the default is 24 hours,
  187. * expressed in seconds.
  188. */
  189. 'session_lifetime' => 60 * 60 * 24,
  190.  
  191. /**
  192. * Enable or disable session keep-alive when a user is logged in to the Web UI.
  193. * Enabling this sends a "heartbeat" to the server to keep it from timing out.
  194. */
  195. 'session_keepalive' => true,
  196.  
  197. /**
  198. * Enforce token authentication for clients, which blocks requests using the user
  199. * password for enhanced security. Users need to generate tokens in personal settings
  200. * which can be used as passwords on their clients.
  201. */
  202. 'token_auth_enforced' => false,
  203.  
  204. /**
  205. * The directory where the skeleton files are located. These files will be
  206. * copied to the data directory of new users. Leave empty to not copy any
  207. * skeleton files.
  208. */
  209. 'skeletondirectory' => '/path/to/owncloud/core/skeleton',
  210.  
  211. /**
  212. * The ``user_backends`` app (which needs to be enabled first) allows you to
  213. * configure alternate authentication backends. Supported backends are:
  214. * IMAP (OC_User_IMAP), SMB (OC_User_SMB), and FTP (OC_User_FTP).
  215. */
  216. 'user_backends' => array(
  217. array(
  218. 'class' => 'OC_User_IMAP',
  219. 'arguments' => array('{imap.gmail.com:993/imap/ssl}INBOX')
  220. )
  221. ),
  222.  
  223. /**
  224. * If your user backend does not allow to reset the password (e.g. when it's a
  225. * read-only user backend like LDAP), you can specify a custom link, where the
  226. * user is redirected to, when clicking the "reset password" link after a failed
  227. * login-attempt.
  228. */
  229. 'lost_password_link' => 'https://example.org/link/to/password/reset',
  230.  
  231. /**
  232. * Mail Parameters
  233. *
  234. * These configure the email settings for ownCloud notifications and password
  235. * resets.
  236. */
  237.  
  238. /**
  239. * The return address that you want to appear on emails sent by the ownCloud
  240. * server, for example ``oc-admin@example.com``, substituting your own domain,
  241. * of course.
  242. */
  243. 'mail_domain' => 'example.com',
  244.  
  245. /**
  246. * FROM address that overrides the built-in ``sharing-noreply`` and
  247. * ``lostpassword-noreply`` FROM addresses.
  248. */
  249. 'mail_from_address' => 'owncloud',
  250.  
  251. /**
  252. * Enable SMTP class debugging.
  253. */
  254. 'mail_smtpdebug' => false,
  255.  
  256. /**
  257. * Which mode to use for sending mail: ``sendmail``, ``smtp``, ``qmail`` or
  258. * ``php``.
  259. *
  260. * If you are using local or remote SMTP, set this to ``smtp``.
  261. *
  262. * If you are using PHP mail you must have an installed and working email system
  263. * on the server. The program used to send email is defined in the ``php.ini``
  264. * file.
  265. *
  266. * For the ``sendmail`` option you need an installed and working email system on
  267. * the server, with ``/usr/sbin/sendmail`` installed on your Unix system.
  268. *
  269. * For ``qmail`` the binary is /var/qmail/bin/sendmail, and it must be installed
  270. * on your Unix system.
  271. */
  272. 'mail_smtpmode' => 'sendmail',
  273.  
  274. /**
  275. * This depends on ``mail_smtpmode``. Specify the IP address of your mail
  276. * server host. This may contain multiple hosts separated by a semi-colon. If
  277. * you need to specify the port number append it to the IP address separated by
  278. * a colon, like this: ``127.0.0.1:24``.
  279. */
  280. 'mail_smtphost' => '127.0.0.1',
  281.  
  282. /**
  283. * This depends on ``mail_smtpmode``. Specify the port for sending mail.
  284. */
  285. 'mail_smtpport' => 25,
  286.  
  287. /**
  288. * This depends on ``mail_smtpmode``. This sets the SMTP server timeout, in
  289. * seconds. You may need to increase this if you are running an anti-malware or
  290. * spam scanner.
  291. */
  292. 'mail_smtptimeout' => 10,
  293.  
  294. /**
  295. * This depends on ``mail_smtpmode``. Specify when you are using ``ssl`` or
  296. * ``tls``, or leave empty for no encryption.
  297. */
  298. 'mail_smtpsecure' => '',
  299.  
  300. /**
  301. * This depends on ``mail_smtpmode``. Change this to ``true`` if your mail
  302. * server requires authentication.
  303. */
  304. 'mail_smtpauth' => false,
  305.  
  306. /**
  307. * This depends on ``mail_smtpmode``. If SMTP authentication is required, choose
  308. * the authentication type as ``LOGIN`` (default) or ``PLAIN``.
  309. */
  310. 'mail_smtpauthtype' => 'LOGIN',
  311.  
  312. /**
  313. * This depends on ``mail_smtpauth``. Specify the username for authenticating to
  314. * the SMTP server.
  315. */
  316. 'mail_smtpname' => '',
  317.  
  318. /**
  319. * This depends on ``mail_smtpauth``. Specify the password for authenticating to
  320. * the SMTP server.
  321. */
  322. 'mail_smtppassword' => '',
  323.  
  324.  
  325. /**
  326. * Proxy Configurations
  327. */
  328.  
  329. /**
  330. * The automatic hostname detection of ownCloud can fail in certain reverse
  331. * proxy and CLI/cron situations. This option allows you to manually override
  332. * the automatic detection; for example ``www.example.com``, or specify the port
  333. * ``www.example.com:8080``.
  334. */
  335. 'overwritehost' => '',
  336.  
  337. /**
  338. * When generating URLs, ownCloud attempts to detect whether the server is
  339. * accessed via ``https`` or ``http``. However, if ownCloud is behind a proxy
  340. * and the proxy handles the ``https`` calls, ownCloud would not know that
  341. * ``ssl`` is in use, which would result in incorrect URLs being generated.
  342. * Valid values are ``http`` and ``https``.
  343. */
  344. 'overwriteprotocol' => '',
  345.  
  346. /**
  347. * ownCloud attempts to detect the webroot for generating URLs automatically.
  348. * For example, if ``www.example.com/owncloud`` is the URL pointing to the
  349. * ownCloud instance, the webroot is ``/owncloud``. When proxies are in use, it
  350. * may be difficult for ownCloud to detect this parameter, resulting in invalid
  351. * URLs.
  352. */
  353. 'overwritewebroot' => '',
  354.  
  355. /**
  356. * This option allows you to define a manual override condition as a regular
  357. * expression for the remote IP address. For example, defining a range of IP
  358. * addresses starting with ``10.0.0.`` and ending with 1 to 3:
  359. * ``^10\.0\.0\.[1-3]$``
  360. */
  361. 'overwritecondaddr' => '',
  362.  
  363. /**
  364. * Use this configuration parameter to specify the base URL for any URLs which
  365. * are generated within ownCloud using any kind of command line tools (cron or
  366. * occ). The value should contain the full base URL:
  367. * ``https://www.example.com/owncloud``
  368. */
  369. 'overwrite.cli.url' => '',
  370.  
  371. /**
  372. * To have clean URLs without `/index.php` this parameter needs to be configured.
  373. *
  374. * This parameter will be written as "RewriteBase" on update and installation of
  375. * ownCloud to your `.htaccess` file. While this value is often simply the URL
  376. * path of the ownCloud installation it cannot be set automatically properly in
  377. * every scenario and needs thus some manual configuration.
  378. *
  379. * In a standard Apache setup this usually equals the folder that ownCloud is
  380. * accessible at. So if ownCloud is accessible via "https://mycloud.org/owncloud"
  381. * the correct value would most likely be "/owncloud". If ownCloud is running
  382. * under "https://mycloud.org/" then it would be "/".
  383. *
  384. * Note that above rule is not valid in every case, there are some rare setup
  385. * cases where this may not apply. However, to avoid any update problems this
  386. * configuration value is explicitly opt-in.
  387. *
  388. * After setting this value run `occ maintenance:update:htaccess` and when following
  389. * conditions are met ownCloud uses URLs without index.php in it:
  390. *
  391. * - `mod_rewrite` is installed
  392. * - `mod_env` is installed
  393. */
  394. 'htaccess.RewriteBase' => '/',
  395.  
  396. /**
  397. * The URL of your proxy server, for example ``proxy.example.com:8081``.
  398. */
  399. 'proxy' => '',
  400.  
  401. /**
  402. * The optional authentication for the proxy to use to connect to the internet.
  403. * The format is: ``username:password``.
  404. */
  405. 'proxyuserpwd' => '',
  406.  
  407.  
  408. /**
  409. * Deleted Items (trash bin)
  410. *
  411. * These parameters control the Deleted files app.
  412. */
  413.  
  414. /**
  415. * If the trash bin app is enabled (default), this setting defines the policy
  416. * for when files and folders in the trash bin will be permanently deleted.
  417. * The app allows for two settings, a minimum time for trash bin retention,
  418. * and a maximum time for trash bin retention.
  419. * Minimum time is the number of days a file will be kept, after which it
  420. * may be deleted. Maximum time is the number of days at which it is guaranteed
  421. * to be deleted.
  422. * Both minimum and maximum times can be set together to explicitly define
  423. * file and folder deletion. For migration purposes, this setting is installed
  424. * initially set to "auto", which is equivalent to the default setting in
  425. * ownCloud 8.1 and before.
  426. *
  427. * Available values:
  428. *
  429. * * ``auto``
  430. * default setting. keeps files and folders in the trash bin for 30 days
  431. * and automatically deletes anytime after that if space is needed (note:
  432. * files may not be deleted if space is not needed).
  433. * * ``D, auto``
  434. * keeps files and folders in the trash bin for D+ days, delete anytime if
  435. * space needed (note: files may not be deleted if space is not needed)
  436. * * ``auto, D``
  437. * delete all files in the trash bin that are older than D days
  438. * automatically, delete other files anytime if space needed
  439. * * ``D1, D2``
  440. * keep files and folders in the trash bin for at least D1 days and
  441. * delete when exceeds D2 days
  442. * * ``disabled``
  443. * trash bin auto clean disabled, files and folders will be kept forever
  444. */
  445. 'trashbin_retention_obligation' => 'auto',
  446.  
  447.  
  448. /**
  449. * File versions
  450. *
  451. * These parameters control the Versions app.
  452. */
  453.  
  454. /**
  455. * If the versions app is enabled (default), this setting defines the policy
  456. * for when versions will be permanently deleted.
  457. * The app allows for two settings, a minimum time for version retention,
  458. * and a maximum time for version retention.
  459. * Minimum time is the number of days a version will be kept, after which it
  460. * may be deleted. Maximum time is the number of days at which it is guaranteed
  461. * to be deleted.
  462. * Both minimum and maximum times can be set together to explicitly define
  463. * version deletion. For migration purposes, this setting is installed
  464. * initially set to "auto", which is equivalent to the default setting in
  465. * ownCloud 8.1 and before.
  466. *
  467. * Available values:
  468. *
  469. * * ``auto``
  470. * default setting. Automatically expire versions according to expire
  471. * rules. Please refer to :doc:`../configuration_files/file_versioning` for
  472. * more information.
  473. * * ``D, auto``
  474. * keep versions at least for D days, apply expire rules to all versions
  475. * that are older than D days
  476. * * ``auto, D``
  477. * delete all versions that are older than D days automatically, delete
  478. * other versions according to expire rules
  479. * * ``D1, D2``
  480. * keep versions for at least D1 days and delete when exceeds D2 days
  481. * * ``disabled``
  482. * versions auto clean disabled, versions will be kept forever
  483. */
  484. 'versions_retention_obligation' => 'auto',
  485.  
  486. /**
  487. * ownCloud Verifications
  488. *
  489. * ownCloud performs several verification checks. There are two options,
  490. * ``true`` and ``false``.
  491. */
  492.  
  493. /**
  494. * Checks an app before install whether it uses private APIs instead of the
  495. * proper public APIs. If this is set to true it will only allow to install or
  496. * enable apps that pass this check.
  497. */
  498. 'appcodechecker' => true,
  499.  
  500. /**
  501. * Check if ownCloud is up-to-date and shows a notification if a new version is
  502. * available.
  503. */
  504. 'updatechecker' => true,
  505.  
  506. /**
  507. * URL that ownCloud should use to look for updates
  508. */
  509. 'updater.server.url' => 'https://updates.owncloud.com/server/',
  510.  
  511. /**
  512. * Is ownCloud connected to the Internet or running in a closed network?
  513. */
  514. 'has_internet_connection' => true,
  515.  
  516. /**
  517. * Allows ownCloud to verify a working WebDAV connection. This is done by
  518. * attempting to make a WebDAV request from PHP.
  519. */
  520. 'check_for_working_webdav' => true,
  521.  
  522. /**
  523. * Allows ownCloud to verify a working .well-known URL redirects. This is done
  524. * by attempting to make a request from JS to
  525. * https://your-domain.com/.well-known/caldav/
  526. */
  527. 'check_for_working_wellknown_setup' => true,
  528.  
  529. /**
  530. * This is a crucial security check on Apache servers that should always be set
  531. * to ``true``. This verifies that the ``.htaccess`` file is writable and works.
  532. * If it is not, then any options controlled by ``.htaccess``, such as large
  533. * file uploads, will not work. It also runs checks on the ``data/`` directory,
  534. * which verifies that it can't be accessed directly through the Web server.
  535. */
  536. 'check_for_working_htaccess' => true,
  537.  
  538. /**
  539. * In certain environments it is desired to have a read-only configuration file.
  540. * When this switch is set to ``true`` ownCloud will not verify whether the
  541. * configuration is writable. However, it will not be possible to configure
  542. * all options via the Web interface. Furthermore, when updating ownCloud
  543. * it is required to make the configuration file writable again for the update
  544. * process.
  545. */
  546. 'config_is_read_only' => false,
  547.  
  548. /**
  549. * Logging
  550. */
  551.  
  552. /**
  553. * By default the ownCloud logs are sent to the ``owncloud.log`` file in the
  554. * default ownCloud data directory.
  555. * If syslogging is desired, set this parameter to ``syslog``.
  556. * Setting this parameter to ``errorlog`` will use the PHP error_log function
  557. * for logging.
  558. */
  559. 'log_type' => 'owncloud',
  560.  
  561. /**
  562. * Log file path for the ownCloud logging type.
  563. * Defaults to ``[datadirectory]/owncloud.log``
  564. */
  565. 'logfile' => '/var/log/owncloud.log',
  566.  
  567. /**
  568. * Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 =
  569. * Warning, 3 = Error, and 4 = Fatal. The default value is Warning.
  570. */
  571. 'loglevel' => 2,
  572.  
  573. /**
  574. * If you maintain different instances and aggregate the logs, you may want
  575. * to distinguish between them. ``syslog_tag`` can be set per instance
  576. * with a unique id. Only available if ``log_type`` is set to ``syslog``.
  577. * The default value is ``ownCloud``.
  578. */
  579. 'syslog_tag' => 'ownCloud',
  580.  
  581. /**
  582. * Log condition for log level increase based on conditions. Once one of these
  583. * conditions is met, the required log level is set to debug. This allows to
  584. * debug specific requests, users or apps
  585. *
  586. * Supported conditions:
  587. * - ``shared_secret``: if a request parameter with the name `log_secret` is set to
  588. * this value the condition is met
  589. * - ``users``: if the current request is done by one of the specified users,
  590. * this condition is met
  591. * - ``apps``: if the log message is invoked by one of the specified apps,
  592. * this condition is met
  593. *
  594. * Defaults to an empty array.
  595. */
  596. 'log.condition' => [
  597. 'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
  598. 'users' => ['sample-user'],
  599. 'apps' => ['files'],
  600. ],
  601.  
  602. /**
  603. * This uses PHP.date formatting; see http://php.net/manual/en/function.date.php
  604. */
  605. 'logdateformat' => 'F d, Y H:i:s',
  606.  
  607. /**
  608. * The default timezone for logfiles is UTC. You may change this; see
  609. * http://php.net/manual/en/timezones.php
  610. */
  611. 'logtimezone' => 'Europe/Berlin',
  612.  
  613. /**
  614. * Append all database queries and parameters to the log file. Use this only for
  615. * debugging, as your logfile will become huge.
  616. */
  617. 'log_query' => false,
  618.  
  619. /**
  620. * Log successful cron runs.
  621. */
  622. 'cron_log' => true,
  623.  
  624. /**
  625. * Enables log rotation and limits the total size of logfiles. The default is 0,
  626. * or no rotation. Specify a size in bytes, for example 104857600 (100 megabytes
  627. * = 100 * 1024 * 1024 bytes). A new logfile is created with a new name when the
  628. * old logfile reaches your limit. If a rotated log file is already present, it
  629. * will be overwritten.
  630. */
  631. 'log_rotate_size' => false,
  632.  
  633.  
  634. /**
  635. * Alternate Code Locations
  636. *
  637. * Some of the ownCloud code may be stored in alternate locations.
  638. */
  639.  
  640. /**
  641. * This section is for configuring the download links for ownCloud clients, as
  642. * seen in the first-run wizard and on Personal pages.
  643. */
  644. 'customclient_desktop' =>
  645. 'https://owncloud.org/install/#install-clients',
  646. 'customclient_android' =>
  647. 'https://play.google.com/store/apps/details?id=com.owncloud.android',
  648. 'customclient_ios' =>
  649. 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8',
  650.  
  651. /**
  652. * Apps
  653. *
  654. * Options for the Apps folder, Apps store, and App code checker.
  655. */
  656.  
  657. /**
  658. * When enabled, admins may install apps from the ownCloud app store.
  659. */
  660. 'appstoreenabled' => true,
  661.  
  662. /**
  663. * The URL of the appstore to use.
  664. */
  665. 'appstoreurl' => 'https://api.owncloud.com/v1',
  666.  
  667. /**
  668. * Whether to show experimental apps in the appstore interface
  669. *
  670. * Experimental apps are not checked for security issues and are new or known
  671. * to be unstable and under heavy development. Installing these can cause data
  672. * loss or security breaches.
  673. */
  674. 'appstore.experimental.enabled' => false,
  675.  
  676. /**
  677. * Use the ``apps_paths`` parameter to set the location of the Apps directory,
  678. * which should be scanned for available apps, and where user-specific apps
  679. * should be installed from the Apps store. The ``path`` defines the absolute
  680. * file system path to the app folder. The key ``url`` defines the HTTP Web path
  681. * to that folder, starting from the ownCloud webroot. The key ``writable``
  682. * indicates if a Web server can write files to that folder.
  683. */
  684. 'apps_paths' => array(
  685. array(
  686. 'path'=> '/var/www/owncloud/apps',
  687. 'url' => '/apps',
  688. 'writable' => true,
  689. ),
  690. ),
  691.  
  692. /**
  693. * @see appcodechecker
  694. */
  695.  
  696.  
  697. /**
  698. * Previews
  699. *
  700. * ownCloud supports previews of image files, the covers of MP3 files, and text
  701. * files. These options control enabling and disabling previews, and thumbnail
  702. * size.
  703. */
  704.  
  705. /**
  706. * By default, ownCloud can generate previews for the following filetypes:
  707. *
  708. * - Image files
  709. * - Covers of MP3 files
  710. * - Text documents
  711. *
  712. * Valid values are ``true``, to enable previews, or
  713. * ``false``, to disable previews
  714. */
  715. 'enable_previews' => true,
  716. /**
  717. * The maximum width, in pixels, of a preview. A value of ``null`` means there
  718. * is no limit.
  719. */
  720. 'preview_max_x' => 2048,
  721. /**
  722. * The maximum height, in pixels, of a preview. A value of ``null`` means there
  723. * is no limit.
  724. */
  725. 'preview_max_y' => 2048,
  726. /**
  727. * If a lot of small pictures are stored on the ownCloud instance and the
  728. * preview system generates blurry previews, you might want to consider setting
  729. * a maximum scale factor. By default, pictures are upscaled to 10 times the
  730. * original size. A value of ``1`` or ``null`` disables scaling.
  731. */
  732. 'preview_max_scale_factor' => 10,
  733.  
  734. /**
  735. * max file size for generating image previews with imagegd (default behaviour)
  736. * If the image is bigger, it'll try other preview generators,
  737. * but will most likely show the default mimetype icon
  738. *
  739. * Value represents the maximum filesize in megabytes
  740. * Default is 50
  741. * Set to -1 for no limit
  742. */
  743. 'preview_max_filesize_image' => 50,
  744.  
  745. /**
  746. * custom path for LibreOffice/OpenOffice binary
  747. */
  748. 'preview_libreoffice_path' => '/usr/bin/libreoffice',
  749. /**
  750. * Use this if LibreOffice/OpenOffice requires additional arguments.
  751. */
  752. 'preview_office_cl_parameters' =>
  753. ' --headless --nologo --nofirststartwizard --invisible --norestore '.
  754. '--convert-to pdf --outdir ',
  755.  
  756. /**
  757. * Only register providers that have been explicitly enabled
  758. *
  759. * The following providers are enabled by default:
  760. *
  761. * - OC\Preview\PNG
  762. * - OC\Preview\JPEG
  763. * - OC\Preview\GIF
  764. * - OC\Preview\BMP
  765. * - OC\Preview\XBitmap
  766. * - OC\Preview\MarkDown
  767. * - OC\Preview\MP3
  768. * - OC\Preview\TXT
  769. *
  770. * The following providers are disabled by default due to performance or privacy
  771. * concerns:
  772. *
  773. * - OC\Preview\Illustrator
  774. * - OC\Preview\Movie
  775. * - OC\Preview\MSOffice2003
  776. * - OC\Preview\MSOffice2007
  777. * - OC\Preview\MSOfficeDoc
  778. * - OC\Preview\OpenDocument
  779. * - OC\Preview\PDF
  780. * - OC\Preview\Photoshop
  781. * - OC\Preview\Postscript
  782. * - OC\Preview\StarOffice
  783. * - OC\Preview\SVG
  784. * - OC\Preview\TIFF
  785. * - OC\Preview\Font
  786. *
  787. * .. note:: Troubleshooting steps for the MS Word previews are available
  788. * at the :doc:`../configuration_files/collaborative_documents_configuration`
  789. * section of the Administrators Manual.
  790. *
  791. * The following providers are not available in Microsoft Windows:
  792. *
  793. * - OC\Preview\Movie
  794. * - OC\Preview\MSOfficeDoc
  795. * - OC\Preview\MSOffice2003
  796. * - OC\Preview\MSOffice2007
  797. * - OC\Preview\OpenDocument
  798. * - OC\Preview\StarOffice
  799. */
  800. 'enabledPreviewProviders' => array(
  801. 'OC\Preview\PNG',
  802. 'OC\Preview\JPEG',
  803. 'OC\Preview\GIF',
  804. 'OC\Preview\BMP',
  805. 'OC\Preview\XBitmap',
  806. 'OC\Preview\MP3',
  807. 'OC\Preview\TXT',
  808. 'OC\Preview\MarkDown'
  809. ),
  810.  
  811. /**
  812. * LDAP
  813. *
  814. * Global settings used by LDAP User and Group Backend
  815. */
  816.  
  817. /**
  818. * defines the interval in minutes for the background job that checks user
  819. * existence and marks them as ready to be cleaned up. The number is always
  820. * minutes. Setting it to 0 disables the feature.
  821. * See command line (occ) methods ldap:show-remnants and user:delete
  822. */
  823. 'ldapUserCleanupInterval' => 51,
  824.  
  825. /**
  826. * Comments
  827. *
  828. * Global settings for the Comments infrastructure
  829. */
  830.  
  831. /**
  832. * Replaces the default Comments Manager Factory. This can be utilized if an
  833. * own or 3rdParty CommentsManager should be used that – for instance – uses the
  834. * filesystem instead of the database to keep the comments.
  835. */
  836. 'comments.managerFactory' => '\OC\Comments\ManagerFactory',
  837.  
  838. /**
  839. * Replaces the default System Tags Manager Factory. This can be utilized if an
  840. * own or 3rdParty SystemTagsManager should be used that – for instance – uses the
  841. * filesystem instead of the database to keep the comments.
  842. */
  843. 'systemtags.managerFactory' => '\OC\SystemTag\ManagerFactory',
  844.  
  845. /**
  846. * Maintenance
  847. *
  848. * These options are for halting user activity when you are performing server
  849. * maintenance.
  850. */
  851.  
  852. /**
  853. * Enable maintenance mode to disable ownCloud
  854. *
  855. * If you want to prevent users from logging in to ownCloud before you start
  856. * doing some maintenance work, you need to set the value of the maintenance
  857. * parameter to true. Please keep in mind that users who are already logged-in
  858. * are kicked out of ownCloud instantly.
  859. */
  860. 'maintenance' => false,
  861.  
  862. /**
  863. * When set to ``true``, the ownCloud instance will be unavailable for all users
  864. * who are not in the ``admin`` group.
  865. */
  866. 'singleuser' => false,
  867.  
  868.  
  869. /**
  870. * SSL
  871. */
  872.  
  873. /**
  874. * Extra SSL options to be used for configuration.
  875. */
  876. 'openssl' => array(
  877. 'config' => '/absolute/location/of/openssl.cnf',
  878. ),
  879.  
  880. /**
  881. * Allow the configuration of system wide trusted certificates
  882. */
  883. 'enable_certificate_management' => false,
  884.  
  885. /**
  886. * Memory caching backend configuration
  887. *
  888. * Available cache backends:
  889. *
  890. * * ``\OC\Memcache\APC`` Alternative PHP Cache backend
  891. * * ``\OC\Memcache\APCu`` APC user backend
  892. * * ``\OC\Memcache\ArrayCache`` In-memory array-based backend (not recommended)
  893. * * ``\OC\Memcache\Memcached`` Memcached backend
  894. * * ``\OC\Memcache\Redis`` Redis backend
  895. * * ``\OC\Memcache\XCache`` XCache backend
  896. *
  897. * Advice on choosing between the various backends:
  898. *
  899. * * APCu should be easiest to install. Almost all distributions have packages.
  900. * Use this for single user environment for all caches.
  901. * * Use Redis or Memcached for distributed environments.
  902. * For the local cache (you can configure two) take APCu.
  903. */
  904.  
  905. /**
  906. * Memory caching backend for locally stored data
  907. *
  908. * * Used for host-specific data, e.g. file paths
  909. */
  910. 'memcache.local' => '\OC\Memcache\APCu',
  911. /*
  912. 'memcache.locking' => '\OC\Memcache\Redis',
  913. */
  914. /**
  915. * Memory caching backend for distributed data
  916. *
  917. * * Used for installation-specific data, e.g. database caching
  918. * * If unset, defaults to the value of memcache.local
  919. */
  920.  
  921. /**
  922. 'memcache.distributed' => '\OC\Memcache\Memcached',
  923. **/
  924.  
  925. /**
  926. * Connection details for redis to use for memory caching.
  927. *
  928. * For enhanced security it is recommended to configure Redis
  929. * to require a password. See http://redis.io/topics/security
  930. * for more information.
  931. */
  932. /*
  933. 'redis' => array(
  934. 'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
  935. 'port' => 6379,
  936. 'timeout' => 0.0,
  937. 'password' => '', // Optional, if not defined no password will be used.
  938. 'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
  939. ),
  940. */
  941. /**
  942. * Server details for one or more memcached servers to use for memory caching.
  943. */
  944. /*
  945. 'memcached_servers' => array(
  946. // hostname, port and optional weight. Also see:
  947. // http://www.php.net/manual/en/memcached.addservers.php
  948. // http://www.php.net/manual/en/memcached.addserver.php
  949. array('localhost', 11211),
  950. //array('other.host.local', 11211),
  951. ),
  952. */
  953. /**
  954. * Connection options for memcached, see http://apprize.info/php/scaling/15.html
  955. */
  956. 'memcached_options' => array(
  957. // Set timeouts to 50ms
  958. \Memcached::OPT_CONNECT_TIMEOUT => 50,
  959. \Memcached::OPT_RETRY_TIMEOUT => 50,
  960. \Memcached::OPT_SEND_TIMEOUT => 50,
  961. \Memcached::OPT_RECV_TIMEOUT => 50,
  962. \Memcached::OPT_POLL_TIMEOUT => 50,
  963.  
  964. // Enable compression
  965. \Memcached::OPT_COMPRESSION => true,
  966.  
  967. // Turn on consistent hashing
  968. \Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
  969.  
  970. // Enable Binary Protocol
  971. \Memcached::OPT_BINARY_PROTOCOL => true,
  972.  
  973. // Binary serializer vill be enabled if the igbinary PECL module is available
  974. //\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
  975. ),
  976.  
  977. /**
  978. * Location of the cache folder, defaults to ``data/$user/cache`` where
  979. * ``$user`` is the current user. When specified, the format will change to
  980. * ``$cache_path/$user`` where ``$cache_path`` is the configured cache directory
  981. * and ``$user`` is the user.
  982. */
  983. '*/cache_path' => '',
  984.  
  985. /**
  986. * TTL of chunks located in the cache folder before they're removed by
  987. * garbage collection (in seconds). Increase this value if users have
  988. * issues uploading very large files via the ownCloud Client as upload isn't
  989. * completed within one day.
  990. */
  991. 'cache_chunk_gc_ttl' => 86400, // 60*60*24 = 1 day
  992.  
  993. /**
  994. * Using Object Store with ownCloud
  995. */
  996.  
  997. /**
  998. * This example shows how to configure ownCloud to store all files in a
  999. * swift object storage.
  1000. *
  1001. * It is important to note that ownCloud in object store mode will expect
  1002. * exclusive access to the object store container because it only stores the
  1003. * binary data for each file. The metadata is currently kept in the local
  1004. * database for performance reasons.
  1005. *
  1006. * WARNING: The current implementation is incompatible with any app that uses
  1007. * direct file IO and circumvents our virtual filesystem. That includes
  1008. * Encryption and Gallery. Gallery will store thumbnails directly in the
  1009. * filesystem and encryption will cause severe overhead because key files need
  1010. * to be fetched in addition to any requested file.
  1011. *
  1012. * One way to test is applying for a trystack account at http://trystack.org/
  1013. */
  1014. 'objectstore' => array(
  1015. 'class' => 'OC\\Files\\ObjectStore\\Swift',
  1016. 'arguments' => array(
  1017. // trystack will user your facebook id as the user name
  1018. 'username' => 'facebook100000123456789',
  1019. // in the trystack dashboard go to user -> settings -> API Password to
  1020. // generate a password
  1021. 'password' => 'Secr3tPaSSWoRdt7',
  1022. // must already exist in the objectstore, name can be different
  1023. 'container' => 'owncloud',
  1024. // create the container if it does not exist. default is false
  1025. 'autocreate' => true,
  1026. // required, dev-/trystack defaults to 'RegionOne'
  1027. 'region' => 'RegionOne',
  1028. // The Identity / Keystone endpoint
  1029. 'url' => 'http://8.21.28.222:5000/v2.0',
  1030. // required on dev-/trystack
  1031. 'tenantName' => 'facebook100000123456789',
  1032. // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
  1033. // if omitted
  1034. 'serviceName' => 'swift',
  1035. // The Interface / url Type, optional
  1036. 'urlType' => 'internal'
  1037. ),
  1038. ),
  1039.  
  1040.  
  1041. /**
  1042. * Sharing
  1043. *
  1044. * Global settings for Sharing
  1045. */
  1046.  
  1047. /**
  1048. * Replaces the default Share Provider Factory. This can be utilized if
  1049. * own or 3rdParty Share Providers be used that – for instance – uses the
  1050. * filesystem instead of the database to keep the share information.
  1051. */
  1052. 'sharing.managerFactory' => '\OC\Share20\ProviderFactory',
  1053.  
  1054.  
  1055.  
  1056. /**
  1057. * All other configuration options
  1058. */
  1059.  
  1060. /**
  1061. * Additional driver options for the database connection, eg. to enable SSL
  1062. * encryption in MySQL or specify a custom wait timeout on a cheap hoster.
  1063. */
  1064. 'dbdriveroptions' => array(
  1065. PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
  1066. PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
  1067. ),
  1068.  
  1069. /**
  1070. * sqlite3 journal mode can be specified using this configuration parameter -
  1071. * can be 'WAL' or 'DELETE' see for more details https://www.sqlite.org/wal.html
  1072. */
  1073. 'sqlite.journal_mode' => 'DELETE',
  1074.  
  1075. /**
  1076. * Database types that are supported for installation.
  1077. *
  1078. * Available:
  1079. * - sqlite (SQLite3 - Not in Enterprise Edition)
  1080. * - mysql (MySQL)
  1081. * - pgsql (PostgreSQL)
  1082. * - oci (Oracle - Enterprise Edition Only)
  1083. */
  1084. 'supportedDatabases' => array(
  1085. 'sqlite',
  1086. 'mysql',
  1087. 'pgsql',
  1088. 'oci',
  1089. ),
  1090.  
  1091. /**
  1092. * Override where ownCloud stores temporary files. Useful in situations where
  1093. * the system temporary directory is on a limited space ramdisk or is otherwise
  1094. * restricted, or if external storages which do not support streaming are in
  1095. * use.
  1096. *
  1097. * The Web server user must have write access to this directory.
  1098. */
  1099. 'tempdirectory' => '/tmp/owncloudtemp',
  1100.  
  1101. /**
  1102. * The hashing cost used by hashes generated by ownCloud
  1103. * Using a higher value requires more time and CPU power to calculate the hashes
  1104. */
  1105. 'hashingCost' => 10,
  1106.  
  1107. /**
  1108. * Blacklist a specific file or files and disallow the upload of files
  1109. * with this name. ``.htaccess`` is blocked by default.
  1110. * WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.
  1111. */
  1112. 'blacklisted_files' => array('.htaccess'),
  1113.  
  1114. /**
  1115. * Define a default folder for shared files and folders other than root.
  1116. */
  1117. 'share_folder' => '/',
  1118.  
  1119. /**
  1120. * If you are applying a theme to ownCloud, enter the name of the theme here.
  1121. * The default location for themes is ``owncloud/themes/``.
  1122. */
  1123. 'theme' => '',
  1124.  
  1125. /**
  1126. * The default cipher for encrypting files. Currently AES-128-CFB and
  1127. * AES-256-CFB are supported.
  1128. */
  1129. 'cipher' => 'AES-256-CFB',
  1130.  
  1131. /**
  1132. * The minimum ownCloud desktop client version that will be allowed to sync with
  1133. * this server instance. All connections made from earlier clients will be denied
  1134. * by the server. Defaults to the minimum officially supported ownCloud version at
  1135. * the time of release of this server version.
  1136. *
  1137. * When changing this, note that older unsupported versions of the ownCloud desktop
  1138. * client may not function as expected, and could lead to permanent data loss for
  1139. * clients or other unexpected results.
  1140. */
  1141. 'minimum.supported.desktop.version' => '1.7.0',
  1142.  
  1143. /**
  1144. * EXPERIMENTAL: option whether to include external storage in quota
  1145. * calculation, defaults to false.
  1146. */
  1147. 'quota_include_external_storage' => false,
  1148.  
  1149. /**
  1150. * Specifies how often the local filesystem (the ownCloud data/ directory, and
  1151. * NFS mounts in data/) is checked for changes made outside ownCloud. This
  1152. * does not apply to external storages.
  1153. *
  1154. * 0 -> Never check the filesystem for outside changes, provides a performance
  1155. * increase when it's certain that no changes are made directly to the
  1156. * filesystem
  1157. *
  1158. * 1 -> Check each file or folder at most once per request, recommended for
  1159. * general use if outside changes might happen.
  1160. */
  1161. 'filesystem_check_changes' => 0,
  1162.  
  1163. /**
  1164. * By default ownCloud will store the part files created during upload in the
  1165. * same storage as the upload target. Setting this to false will store the part
  1166. * files in the root of the users folder which might be required to work with certain
  1167. * external storage setups that have limited rename capabilities.
  1168. */
  1169. 'part_file_in_storage' => true,
  1170.  
  1171. /**
  1172. * All css and js files will be served by the Web server statically in one js
  1173. * file and one css file if this is set to ``true``. This improves performance.
  1174. */
  1175. 'asset-pipeline.enabled' => false,
  1176.  
  1177. /**
  1178. * The parent of the directory where css and js assets will be stored if
  1179. * pipelining is enabled; this defaults to the ownCloud directory. The assets
  1180. * will be stored in a subdirectory of this directory named 'assets'. The
  1181. * server *must* be configured to serve that directory as $WEBROOT/assets.
  1182. * You will only likely need to change this if the main ownCloud directory
  1183. * is not writeable by the Web server in your configuration.
  1184. */
  1185. 'assetdirectory' => '/var/www/owncloud',
  1186.  
  1187. /**
  1188. * Where ``mount.json`` file should be stored, defaults to ``data/mount.json``
  1189. * in the ownCloud directory.
  1190. */
  1191. 'mount_file' => '/var/www/owncloud/data/mount.json',
  1192.  
  1193. /**
  1194. * When ``true``, prevent ownCloud from changing the cache due to changes in the
  1195. * filesystem for all storage.
  1196. */
  1197. 'filesystem_cache_readonly' => false,
  1198.  
  1199. /**
  1200. * Secret used by ownCloud for various purposes, e.g. to encrypt data. If you
  1201. * lose this string there will be data corruption.
  1202. */
  1203. 'secret' => '',
  1204.  
  1205. /**
  1206. * List of trusted proxy servers
  1207. *
  1208. * If you configure these also consider setting `forwarded_for_headers` which
  1209. * otherwise defaults to `HTTP_X_FORWARDED_FOR` (the `X-Forwarded-For` header).
  1210. */
  1211. 'trusted_proxies' => array('203.0.113.45', '198.51.100.128'),
  1212.  
  1213. /**
  1214. * Headers that should be trusted as client IP address in combination with
  1215. * `trusted_proxies`. If the HTTP header looks like 'X-Forwarded-For', then use
  1216. * 'HTTP_X_FORWARDED_FOR' here.
  1217. *
  1218. * If set incorrectly, a client can spoof their IP address as visible to
  1219. * ownCloud, bypassing access controls and making logs useless!
  1220. *
  1221. * Defaults to 'HTTP_X_FORWARED_FOR' if unset
  1222. */
  1223. 'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
  1224.  
  1225. /**
  1226. * max file size for animating gifs on public-sharing-site.
  1227. * If the gif is bigger, it'll show a static preview
  1228. *
  1229. * Value represents the maximum filesize in megabytes. Default is ``10``. Set to
  1230. * ``-1`` for no limit.
  1231. */
  1232. 'max_filesize_animated_gifs_public_sharing' => 10,
  1233.  
  1234.  
  1235. /**
  1236. * Enables transactional file locking.
  1237. * This is enabled by default.
  1238. *
  1239. * Prevents concurrent processes from accessing the same files
  1240. * at the same time. Can help prevent side effects that would
  1241. * be caused by concurrent operations. Mainly relevant for
  1242. * very large installations with many users working with
  1243. * shared files.
  1244. */
  1245. 'filelocking.enabled' => true,
  1246.  
  1247. /**
  1248. * Set the time-to-live for locks in secconds.
  1249. *
  1250. * Any lock older than this will be automatically cleaned up.
  1251. *
  1252. * If not set this defaults to either 1 hour or the php max_execution_time, whichever is higher.
  1253. */
  1254. 'filelocking.ttl' => 3600,
  1255.  
  1256. /**
  1257. * Memory caching backend for file locking
  1258. *
  1259. * Because most memcache backends can clean values without warning using redis
  1260. * is highly recommended to *avoid data loss*.
  1261. */
  1262. 'memcache.locking' => '\\OC\\Memcache\\Redis',
  1263.  
  1264. /**
  1265. * Disable the web based updater
  1266. */
  1267. 'upgrade.disable-web' => false,
  1268.  
  1269. /**
  1270. * Set this ownCloud instance to debugging mode
  1271. *
  1272. * Only enable this for local development and not in production environments
  1273. * This will disable the minifier and outputs some additional debug information
  1274. */
  1275. 'debug' => false,
  1276.  
  1277. /**
  1278. * Sets the data-fingerprint of the current data served
  1279. *
  1280. * This is a property used by the clients to find out if a backup has been
  1281. * restored on the server. Once a backup is restored run
  1282. * ./occ maintenance:data-fingerprint
  1283. * To set this to a new value.
  1284. *
  1285. * Updating/Deleting this value can make connected clients stall until
  1286. * the user has resolved conflicts.
  1287. */
  1288. 'data-fingerprint' => '',
  1289.  
  1290. /**
  1291. * This entry is just here to show a warning in case somebody copied the sample
  1292. * configuration. DO NOT ADD THIS SWITCH TO YOUR CONFIGURATION!
  1293. *
  1294. * If you, brave person, have read until here be aware that you should not
  1295. * modify *ANY* settings in this file without reading the documentation.
  1296. */
  1297. 'copied_sample_config' => true,
  1298.  
  1299. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement