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

config.sample.php 39KB

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