Guest User

Untitled

a guest
May 9th, 2020
97
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 Nextcloud installer, and are required
  30. * for your Nextcloud server to operate.
  31. */
  32.  
  33.  
  34. /**
  35. * This is a unique identifier for your Nextcloud 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 Nextcloud.
  39. *
  40. * 'instanceid' => 'd3c944a9a',
  41. */
  42. 'instanceid' => '',
  43.  
  44. /**
  45. * The salt used to hash all passwords, auto-generated by the Nextcloud
  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. * You can specify:
  62. *
  63. * - the exact hostname of your host or virtual host, e.g. demo.example.org.
  64. * - the exact hostname with permitted port, e.g. demo.example.org:443.
  65. * This disallows all other ports on this host
  66. * - use * as a wildcard, e.g. ubos-raspberry-pi*.local will allow
  67. * ubos-raspberry-pi.local and ubos-raspberry-pi-2.local
  68. */
  69. 'trusted_domains' =>
  70. array (
  71. 'cloud.goldieplay.de',
  72. ),
  73.  
  74.  
  75. /**
  76. * Where user files are stored. The SQLite database is also stored here, when
  77. * you use SQLite.
  78. *
  79. * Default to ``data/`` in the Nextcloud directory.
  80. */
  81. 'datadirectory' => '/ext/cloud',
  82.  
  83. /**
  84. * The current version number of your Nextcloud installation. This is set up
  85. * during installation and update, so you shouldn't need to change it.
  86. */
  87. 'version' => '18.0.4',
  88.  
  89. /**
  90. * Identifies the database used with this installation. See also config option
  91. * ``supportedDatabases``
  92. *
  93. * Available:
  94. * - sqlite3 (SQLite3)
  95. * - mysql (MySQL/MariaDB)
  96. * - pgsql (PostgreSQL)
  97. *
  98. * Defaults to ``sqlite3``
  99. */
  100. 'dbtype' => 'mysql',
  101.  
  102. /**
  103. * Your host server name, for example ``localhost``, ``hostname``,
  104. * ``hostname.example.com``, or the IP address. To specify a port use
  105. * ``hostname:####``; to specify a Unix socket use
  106. * ``localhost:/path/to/socket``.
  107. */
  108. 'dbhost' => 'localhost',
  109.  
  110. /**
  111. * The name of the Nextcloud database, which is set during installation. You
  112. * should not need to change this.
  113. */
  114. 'dbname' => '',
  115.  
  116. /**
  117. * The user that Nextcloud uses to write to the database. This must be unique
  118. * across Nextcloud instances using the same SQL database. This is set up during
  119. * installation, so you shouldn't need to change it.
  120. */
  121. 'dbuser' => '',
  122.  
  123. /**
  124. * The password for the database user. This is set up during installation, so
  125. * you shouldn't need to change it.
  126. */
  127. 'dbpassword' => '',
  128.  
  129. /**
  130. * Prefix for the Nextcloud tables in the database.
  131. *
  132. * Default to ``oc_``
  133. */
  134. 'dbtableprefix' => '',
  135.  
  136.  
  137. /**
  138. * Indicates whether the Nextcloud instance was installed successfully; ``true``
  139. * indicates a successful installation, and ``false`` indicates an unsuccessful
  140. * installation.
  141. *
  142. * Defaults to ``false``
  143. */
  144. 'installed' => false,
  145.  
  146.  
  147. /**
  148. * User Experience
  149. *
  150. * These optional parameters control some aspects of the user interface. Default
  151. * values, where present, are shown.
  152. */
  153.  
  154. /**
  155. * This sets the default language on your Nextcloud server, using ISO_639-1
  156. * language codes such as ``en`` for English, ``de`` for German, and ``fr`` for
  157. * French. It overrides automatic language detection on public pages like login
  158. * or shared items. User's language preferences configured under "personal ->
  159. * language" override this setting after they have logged in. Nextcloud has two
  160. * distinguished language codes for German, 'de' and 'de_DE'. 'de' is used for
  161. * informal German and 'de_DE' for formal German. By setting this value to 'de_DE'
  162. * you can enforce the formal version of German unless the user has chosen
  163. * something different explicitly.
  164. *
  165. * Defaults to ``en``
  166. */
  167. 'default_language' => 'en',
  168.  
  169. /**
  170. * With this setting a language can be forced for all users. If a language is
  171. * forced, the users are also unable to change their language in the personal
  172. * settings. If users shall be unable to change their language, but users have
  173. * different languages, this value can be set to ``true`` instead of a language
  174. * code.
  175. *
  176. * Defaults to ``false``
  177. */
  178. 'force_language' => 'en',
  179.  
  180. /**
  181. * This sets the default locale on your Nextcloud server, using ISO_639
  182. * language codes such as ``en`` for English, ``de`` for German, and ``fr`` for
  183. * French, and ISO-3166 country codes such as ``GB``, ``US``, ``CA``, as defined
  184. * in RFC 5646. It overrides automatic locale detection on public pages like
  185. * login or shared items. User's locale preferences configured under "personal
  186. * -> locale" override this setting after they have logged in.
  187. *
  188. * Defaults to ``en``
  189. */
  190. 'default_locale' => 'en_US',
  191.  
  192. /**
  193. * With this setting a locale can be forced for all users. If a locale is
  194. * forced, the users are also unable to change their locale in the personal
  195. * settings. If users shall be unable to change their locale, but users have
  196. * different languages, this value can be set to ``true`` instead of a locale
  197. * code.
  198. *
  199. * Defaults to ``false``
  200. */
  201. 'force_locale' => 'en_US',
  202.  
  203. /**
  204. * Set the default app to open on login. Use the app names as they appear in the
  205. * URL after clicking them in the Apps menu, such as documents, calendar, and
  206. * gallery. You can use a comma-separated list of app names, so if the first
  207. * app is not enabled for a user then Nextcloud will try the second one, and so
  208. * on. If no enabled apps are found it defaults to the Files app.
  209. *
  210. * Defaults to ``files``
  211. */
  212. 'defaultapp' => 'files',
  213.  
  214. /**
  215. * ``true`` enables the Help menu item in the user menu (top right of the
  216. * Nextcloud Web interface). ``false`` removes the Help item.
  217. */
  218. 'knowledgebaseenabled' => true,
  219.  
  220. /**
  221. * ``true`` allows users to change their display names (on their Personal
  222. * pages), and ``false`` prevents them from changing their display names.
  223. */
  224. 'allow_user_to_change_display_name' => true,
  225.  
  226. /**
  227. * Lifetime of the remember login cookie. This should be larger than the
  228. * session_lifetime. If it is set to 0 remember me is disabled.
  229. *
  230. * Defaults to ``60*60*24*15`` seconds (15 days)
  231. */
  232. 'remember_login_cookie_lifetime' => 60*60*24*15,
  233.  
  234. /**
  235. * The lifetime of a session after inactivity.
  236. *
  237. * Defaults to ``60*60*24`` seconds (24 hours)
  238. */
  239. 'session_lifetime' => 60 * 60 * 24,
  240.  
  241. /**
  242. * Enable or disable session keep-alive when a user is logged in to the Web UI.
  243. * Enabling this sends a "heartbeat" to the server to keep it from timing out.
  244. *
  245. * Defaults to ``true``
  246. */
  247. 'session_keepalive' => true,
  248.  
  249. /**
  250. * Enforce token authentication for clients, which blocks requests using the user
  251. * password for enhanced security. Users need to generate tokens in personal settings
  252. * which can be used as passwords on their clients.
  253. *
  254. * Defaults to ``false``
  255. */
  256. 'token_auth_enforced' => false,
  257.  
  258. /**
  259. * Whether the bruteforce protection shipped with Nextcloud should be enabled or not.
  260. *
  261. * Disabling this is discouraged for security reasons.
  262. *
  263. * Defaults to ``true``
  264. */
  265. 'auth.bruteforce.protection.enabled' => true,
  266.  
  267. /**
  268. * The directory where the skeleton files are located. These files will be
  269. * copied to the data directory of new users. Leave empty to not copy any
  270. * skeleton files.
  271. * ``{lang}`` can be used as a placeholder for the language of the user.
  272. * If the directory does not exist, it falls back to non dialect (from ``de_DE``
  273. * to ``de``). If that does not exist either, it falls back to ``default``
  274. *
  275. * Defaults to ``core/skeleton`` in the Nextcloud directory.
  276. */
  277. 'skeletondirectory' => '/path/to/nextcloud/core/skeleton',
  278.  
  279. /**
  280. * If your user backend does not allow password resets (e.g. when it's a
  281. * read-only user backend like LDAP), you can specify a custom link, where the
  282. * user is redirected to, when clicking the "reset password" link after a failed
  283. * login-attempt.
  284. * In case you do not want to provide any link, replace the url with 'disabled'
  285. */
  286. 'lost_password_link' => 'https://example.org/link/to/password/reset',
  287.  
  288. /**
  289. * Mail Parameters
  290. *
  291. * These configure the email settings for Nextcloud notifications and password
  292. * resets.
  293. */
  294.  
  295. /**
  296. * The return address that you want to appear on emails sent by the Nextcloud
  297. * server, for example ``nc-admin@example.com``, substituting your own domain,
  298. * of course.
  299. */
  300. 'mail_domain' => 'example.com',
  301.  
  302. /**
  303. * FROM address that overrides the built-in ``sharing-noreply`` and
  304. * ``lostpassword-noreply`` FROM addresses.
  305. *
  306. * Defaults to different from addresses depending on the feature.
  307. */
  308. 'mail_from_address' => 'nextcloud',
  309.  
  310. /**
  311. * Enable SMTP class debugging.
  312. *
  313. * Defaults to ``false``
  314. */
  315. 'mail_smtpdebug' => false,
  316.  
  317. /**
  318. * Which mode to use for sending mail: ``sendmail``, ``smtp`` or ``qmail``.
  319. *
  320. * If you are using local or remote SMTP, set this to ``smtp``.
  321. *
  322. * For the ``sendmail`` option you need an installed and working email system on
  323. * the server, with ``/usr/sbin/sendmail`` installed on your Unix system.
  324. *
  325. * For ``qmail`` the binary is /var/qmail/bin/sendmail, and it must be installed
  326. * on your Unix system.
  327. *
  328. * Defaults to ``smtp``
  329. */
  330. 'mail_smtpmode' => 'smtp',
  331.  
  332. /**
  333. * This depends on ``mail_smtpmode``. Specify the IP address of your mail
  334. * server host. This may contain multiple hosts separated by a semi-colon. If
  335. * you need to specify the port number append it to the IP address separated by
  336. * a colon, like this: ``127.0.0.1:24``.
  337. *
  338. * Defaults to ``127.0.0.1``
  339. */
  340. 'mail_smtphost' => '127.0.0.1',
  341.  
  342. /**
  343. * This depends on ``mail_smtpmode``. Specify the port for sending mail.
  344. *
  345. * Defaults to ``25``
  346. */
  347. 'mail_smtpport' => 25,
  348.  
  349. /**
  350. * This depends on ``mail_smtpmode``. This sets the SMTP server timeout, in
  351. * seconds. You may need to increase this if you are running an anti-malware or
  352. * spam scanner.
  353. *
  354. * Defaults to ``10`` seconds
  355. */
  356. 'mail_smtptimeout' => 10,
  357.  
  358. /**
  359. * This depends on ``mail_smtpmode``. Specify when you are using ``ssl`` for SSL/TLS or
  360. * ``tls`` for STARTTLS, or leave empty for no encryption.
  361. *
  362. * Defaults to ``''`` (empty string)
  363. */
  364. 'mail_smtpsecure' => '',
  365.  
  366. /**
  367. * This depends on ``mail_smtpmode``. Change this to ``true`` if your mail
  368. * server requires authentication.
  369. *
  370. * Defaults to ``false``
  371. */
  372. 'mail_smtpauth' => false,
  373.  
  374. /**
  375. * This depends on ``mail_smtpmode``. If SMTP authentication is required, choose
  376. * the authentication type as ``LOGIN`` or ``PLAIN``.
  377. *
  378. * Defaults to ``LOGIN``
  379. */
  380. 'mail_smtpauthtype' => 'LOGIN',
  381.  
  382. /**
  383. * This depends on ``mail_smtpauth``. Specify the username for authenticating to
  384. * the SMTP server.
  385. *
  386. * Defaults to ``''`` (empty string)
  387. */
  388. 'mail_smtpname' => '',
  389.  
  390. /**
  391. * This depends on ``mail_smtpauth``. Specify the password for authenticating to
  392. * the SMTP server.
  393. *
  394. * Default to ``''`` (empty string)
  395. */
  396. 'mail_smtppassword' => '',
  397.  
  398. /**
  399. * Replaces the default mail template layout. This can be utilized if the
  400. * options to modify the mail texts with the theming app is not enough.
  401. * The class must extend ``\OC\Mail\EMailTemplate``
  402. */
  403. 'mail_template_class' => '\OC\Mail\EMailTemplate',
  404.  
  405. /**
  406. * Email will be send by default with an HTML and a plain text body. This option
  407. * allows to only send plain text emails.
  408. */
  409. 'mail_send_plaintext_only' => false,
  410.  
  411. /**
  412. * This depends on ``mail_smtpmode``. Array of additional streams options that
  413. * will be passed to underlying Swift mailer implementation.
  414. * Defaults to an empty array.
  415. */
  416. 'mail_smtpstreamoptions' => array(),
  417.  
  418. /**
  419. * Which mode is used for sendmail/qmail: ``smtp`` or ``pipe``.
  420. *
  421. * For ``smtp`` the sendmail binary is started with the parameter ``-bs``:
  422. * - Use the SMTP protocol on standard input and output.
  423. *
  424. * For ``pipe`` the binary is started with the parameters ``-t``:
  425. * - Read message from STDIN and extract recipients.
  426. *
  427. * Defaults to ``smtp``
  428. */
  429. 'mail_sendmailmode' => 'smtp',
  430.  
  431. /**
  432. * Proxy Configurations
  433. */
  434.  
  435. /**
  436. * The automatic hostname detection of Nextcloud can fail in certain reverse
  437. * proxy and CLI/cron situations. This option allows you to manually override
  438. * the automatic detection; for example ``www.example.com``, or specify the port
  439. * ``www.example.com:8080``.
  440. */
  441. 'overwritehost' => '',
  442.  
  443. /**
  444. * When generating URLs, Nextcloud attempts to detect whether the server is
  445. * accessed via ``https`` or ``http``. However, if Nextcloud is behind a proxy
  446. * and the proxy handles the ``https`` calls, Nextcloud would not know that
  447. * ``ssl`` is in use, which would result in incorrect URLs being generated.
  448. * Valid values are ``http`` and ``https``.
  449. */
  450. 'overwriteprotocol' => '',
  451.  
  452. /**
  453. * Nextcloud attempts to detect the webroot for generating URLs automatically.
  454. * For example, if ``www.example.com/nextcloud`` is the URL pointing to the
  455. * Nextcloud instance, the webroot is ``/nextcloud``. When proxies are in use,
  456. * it may be difficult for Nextcloud to detect this parameter, resulting in
  457. * invalid URLs.
  458. */
  459. 'overwritewebroot' => '',
  460.  
  461. /**
  462. * This option allows you to define a manual override condition as a regular
  463. * expression for the remote IP address. For example, defining a range of IP
  464. * addresses starting with ``10.0.0.`` and ending with 1 to 3:
  465. * ``^10\.0\.0\.[1-3]$``
  466. *
  467. * Defaults to ``''`` (empty string)
  468. */
  469. 'overwritecondaddr' => '',
  470.  
  471. /**
  472. * Use this configuration parameter to specify the base URL for any URLs which
  473. * are generated within Nextcloud using any kind of command line tools (cron or
  474. * occ). The value should contain the full base URL:
  475. * ``https://www.example.com/nextcloud``
  476. *
  477. * Defaults to ``''`` (empty string)
  478. */
  479. 'overwrite.cli.url' => '',
  480.  
  481. /**
  482. * To have clean URLs without `/index.php` this parameter needs to be configured.
  483. *
  484. * This parameter will be written as "RewriteBase" on update and installation of
  485. * Nextcloud to your `.htaccess` file. While this value is often simply the URL
  486. * path of the Nextcloud installation it cannot be set automatically properly in
  487. * every scenario and needs thus some manual configuration.
  488. *
  489. * In a standard Apache setup this usually equals the folder that Nextcloud is
  490. * accessible at. So if Nextcloud is accessible via "https://mycloud.org/nextcloud"
  491. * the correct value would most likely be "/nextcloud". If Nextcloud is running
  492. * under "https://mycloud.org/" then it would be "/".
  493. *
  494. * Note that the above rule is not valid in every case, as there are some rare setup
  495. * cases where this may not apply. However, to avoid any update problems this
  496. * configuration value is explicitly opt-in.
  497. *
  498. * After setting this value run `occ maintenance:update:htaccess`. Now, when the
  499. * following conditions are met Nextcloud URLs won't contain `index.php`:
  500. *
  501. * - `mod_rewrite` is installed
  502. * - `mod_env` is installed
  503. *
  504. * Defaults to ``''`` (empty string)
  505. */
  506. 'htaccess.RewriteBase' => '/',
  507.  
  508. /**
  509. * For server setups, that don't have `mod_env` enabled or restricted (e.g. suEXEC)
  510. * this parameter has to be set to true and will assume mod_rewrite.
  511. *
  512. * Please check, if `mod_rewrite` is active and functional before setting this
  513. * parameter and you updated your .htaccess with `occ maintenance:update:htaccess`.
  514. * Otherwise your nextcloud installation might not be reachable anymore.
  515. * For example, try accessing resources by leaving out `index.php` in the URL.
  516. */
  517. 'htaccess.IgnoreFrontController' => false,
  518.  
  519. /**
  520. * The URL of your proxy server, for example ``proxy.example.com:8081``.
  521. *
  522. * Defaults to ``''`` (empty string)
  523. */
  524. 'proxy' => '',
  525.  
  526. /**
  527. * The optional authentication for the proxy to use to connect to the internet.
  528. * The format is: ``username:password``.
  529. *
  530. * Defaults to ``''`` (empty string)
  531. */
  532. 'proxyuserpwd' => '',
  533.  
  534.  
  535. /**
  536. * Deleted Items (trash bin)
  537. *
  538. * These parameters control the Deleted files app.
  539. */
  540.  
  541. /**
  542. * If the trash bin app is enabled (default), this setting defines the policy
  543. * for when files and folders in the trash bin will be permanently deleted.
  544. * The app allows for two settings, a minimum time for trash bin retention,
  545. * and a maximum time for trash bin retention.
  546. * Minimum time is the number of days a file will be kept, after which it
  547. * may be deleted. Maximum time is the number of days at which it is guaranteed
  548. * to be deleted.
  549. * Both minimum and maximum times can be set together to explicitly define
  550. * file and folder deletion. For migration purposes, this setting is installed
  551. * initially set to "auto", which is equivalent to the default setting in
  552. * Nextcloud.
  553. *
  554. * Available values:
  555. *
  556. * * ``auto``
  557. * default setting. keeps files and folders in the trash bin for 30 days
  558. * and automatically deletes anytime after that if space is needed (note:
  559. * files may not be deleted if space is not needed).
  560. * * ``D, auto``
  561. * keeps files and folders in the trash bin for D+ days, delete anytime if
  562. * space needed (note: files may not be deleted if space is not needed)
  563. * * ``auto, D``
  564. * delete all files in the trash bin that are older than D days
  565. * automatically, delete other files anytime if space needed
  566. * * ``D1, D2``
  567. * keep files and folders in the trash bin for at least D1 days and
  568. * delete when exceeds D2 days
  569. * * ``disabled``
  570. * trash bin auto clean disabled, files and folders will be kept forever
  571. *
  572. * Defaults to ``auto``
  573. */
  574. 'trashbin_retention_obligation' => 'auto',
  575.  
  576.  
  577. /**
  578. * File versions
  579. *
  580. * These parameters control the Versions app.
  581. */
  582.  
  583. /**
  584. * If the versions app is enabled (default), this setting defines the policy
  585. * for when versions will be permanently deleted.
  586. * The app allows for two settings, a minimum time for version retention,
  587. * and a maximum time for version retention.
  588. * Minimum time is the number of days a version will be kept, after which it
  589. * may be deleted. Maximum time is the number of days at which it is guaranteed
  590. * to be deleted.
  591. * Both minimum and maximum times can be set together to explicitly define
  592. * version deletion. For migration purposes, this setting is installed
  593. * initially set to "auto", which is equivalent to the default setting in
  594. * Nextcloud.
  595. *
  596. * Available values:
  597. *
  598. * * ``auto``
  599. * default setting. Automatically expire versions according to expire
  600. * rules. Please refer to :doc:`../configuration_files/file_versioning` for
  601. * more information.
  602. * * ``D, auto``
  603. * keep versions at least for D days, apply expire rules to all versions
  604. * that are older than D days
  605. * * ``auto, D``
  606. * delete all versions that are older than D days automatically, delete
  607. * other versions according to expire rules
  608. * * ``D1, D2``
  609. * keep versions for at least D1 days and delete when exceeds D2 days
  610. * * ``disabled``
  611. * versions auto clean disabled, versions will be kept forever
  612. *
  613. * Defaults to ``auto``
  614. */
  615. 'versions_retention_obligation' => 'auto',
  616.  
  617. /**
  618. * Nextcloud Verifications
  619. *
  620. * Nextcloud performs several verification checks. There are two options,
  621. * ``true`` and ``false``.
  622. */
  623.  
  624. /**
  625. * Checks an app before install whether it uses private APIs instead of the
  626. * proper public APIs. If this is set to true it will only allow to install or
  627. * enable apps that pass this check.
  628. *
  629. * Defaults to ``false``
  630. */
  631. 'appcodechecker' => true,
  632.  
  633. /**
  634. * Check if Nextcloud is up-to-date and shows a notification if a new version is
  635. * available.
  636. *
  637. * Defaults to ``true``
  638. */
  639. 'updatechecker' => true,
  640.  
  641. /**
  642. * URL that Nextcloud should use to look for updates
  643. *
  644. * Defaults to ``https://updates.nextcloud.com/updater_server/``
  645. */
  646. 'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
  647.  
  648. /**
  649. * The channel that Nextcloud should use to look for updates
  650. *
  651. * Supported values:
  652. * - ``daily``
  653. * - ``beta``
  654. * - ``stable``
  655. */
  656. 'updater.release.channel' => 'stable',
  657.  
  658. /**
  659. * Is Nextcloud connected to the Internet or running in a closed network?
  660. *
  661. * Defaults to ``true``
  662. */
  663. 'has_internet_connection' => true,
  664.  
  665. /**
  666. * Which domains to request to determine the availability of an Internet
  667. * connection. If none of these hosts are reachable, the administration panel
  668. * will show a warning. Set to an empty list to not do any such checks (warning
  669. * will still be shown).
  670. *
  671. * Defaults to the following domains:
  672. *
  673. * - www.nextcloud.com
  674. * - www.startpage.com
  675. * - www.eff.org
  676. * - www.edri.org
  677. */
  678. 'connectivity_check_domains' => array(
  679. 'www.nextcloud.com',
  680. 'www.startpage.com',
  681. 'www.eff.org',
  682. 'www.edri.org'
  683. ),
  684.  
  685. /**
  686. * Allows Nextcloud to verify a working .well-known URL redirects. This is done
  687. * by attempting to make a request from JS to
  688. * https://your-domain.com/.well-known/caldav/
  689. *
  690. * Defaults to ``true``
  691. */
  692. 'check_for_working_wellknown_setup' => true,
  693.  
  694. /**
  695. * This is a crucial security check on Apache servers that should always be set
  696. * to ``true``. This verifies that the ``.htaccess`` file is writable and works.
  697. * If it is not, then any options controlled by ``.htaccess``, such as large
  698. * file uploads, will not work. It also runs checks on the ``data/`` directory,
  699. * which verifies that it can't be accessed directly through the Web server.
  700. *
  701. * Defaults to ``true``
  702. */
  703. 'check_for_working_htaccess' => true,
  704.  
  705. /**
  706. * In rare setups (e.g. on Openshift or docker on windows) the permissions check
  707. * might block the installation while the underlying system offers no means to
  708. * "correct" the permissions. In this case, set the value to false.
  709. *
  710. * In regular cases, if issues with permissions are encountered they should be
  711. * adjusted accordingly. Changing the flag is discouraged.
  712. *
  713. * Defaults to ``true``
  714. */
  715. 'check_data_directory_permissions' => true,
  716.  
  717. /**
  718. * In certain environments it is desired to have a read-only configuration file.
  719. * When this switch is set to ``true`` Nextcloud will not verify whether the
  720. * configuration is writable. However, it will not be possible to configure
  721. * all options via the Web interface. Furthermore, when updating Nextcloud
  722. * it is required to make the configuration file writable again for the update
  723. * process.
  724. *
  725. * Defaults to ``false``
  726. */
  727. 'config_is_read_only' => false,
  728.  
  729. /**
  730. * Logging
  731. */
  732.  
  733. /**
  734. * This parameter determines where the Nextcloud logs are sent.
  735. * ``file``: the logs are written to file ``nextcloud.log`` in the default
  736. * Nextcloud data directory. The log file can be changed with parameter
  737. * ``logfile``.
  738. * ``syslog``: the logs are sent to the system log. This requires a syslog daemon
  739. * to be active.
  740. * ``errorlog``: the logs are sent to the PHP ``error_log`` function.
  741. * ``systemd``: the logs are sent to the Systemd journal. This requires a system
  742. * that runs Systemd and the Systemd journal. The PHP extension ``systemd``
  743. * must be installed and active.
  744. *
  745. * Defaults to ``file``
  746. */
  747. 'log_type' => 'file',
  748.  
  749. /**
  750. * Name of the file to which the Nextcloud logs are written if parameter
  751. * ``log_type`` is set to ``file``.
  752. *
  753. * Defaults to ``[datadirectory]/nextcloud.log``
  754. */
  755. 'logfile' => '/ext/nextcloud.log',
  756.  
  757. /**
  758. * Log file mode for the Nextcloud loggin type in octal notation.
  759. *
  760. * Defaults to 0640 (writeable by user, readable by group).
  761. */
  762. 'logfilemode' => 0640,
  763.  
  764. /**
  765. * Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 =
  766. * Warning, 3 = Error, and 4 = Fatal. The default value is Warning.
  767. *
  768. * Defaults to ``2``
  769. */
  770. 'loglevel' => 2,
  771.  
  772. /**
  773. * If you maintain different instances and aggregate the logs, you may want
  774. * to distinguish between them. ``syslog_tag`` can be set per instance
  775. * with a unique id. Only available if ``log_type`` is set to ``syslog`` or
  776. * ``systemd``.
  777. *
  778. * The default value is ``Nextcloud``.
  779. */
  780. 'syslog_tag' => 'Nextcloud',
  781.  
  782. /**
  783. * Log condition for log level increase based on conditions. Once one of these
  784. * conditions is met, the required log level is set to debug. This allows to
  785. * debug specific requests, users or apps
  786. *
  787. * Supported conditions:
  788. * - ``shared_secret``: if a request parameter with the name `log_secret` is set to
  789. * this value the condition is met
  790. * - ``users``: if the current request is done by one of the specified users,
  791. * this condition is met
  792. * - ``apps``: if the log message is invoked by one of the specified apps,
  793. * this condition is met
  794. *
  795. * Defaults to an empty array.
  796. */
  797. 'log.condition' => [
  798. 'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
  799. 'users' => ['sample-user'],
  800. 'apps' => ['files'],
  801. ],
  802.  
  803. /**
  804. * This uses PHP.date formatting; see http://php.net/manual/en/function.date.php
  805. *
  806. * Defaults to ISO 8601 ``2005-08-15T15:52:01+00:00`` - see \DateTime::ATOM
  807. * (https://secure.php.net/manual/en/class.datetime.php#datetime.constants.atom)
  808. */
  809. 'logdateformat' => 'F d, Y H:i:s',
  810.  
  811. /**
  812. * The timezone for logfiles. You may change this; see
  813. * http://php.net/manual/en/timezones.php
  814. *
  815. * Defaults to ``UTC``
  816. */
  817. 'logtimezone' => 'Europe/Berlin',
  818.  
  819. /**
  820. * Append all database queries and parameters to the log file. Use this only for
  821. * debugging, as your logfile will become huge.
  822. */
  823. 'log_query' => false,
  824.  
  825. /**
  826. * Enables log rotation and limits the total size of logfiles. The default is 0,
  827. * or no rotation. Specify a size in bytes, for example 104857600 (100 megabytes
  828. * = 100 * 1024 * 1024 bytes). A new logfile is created with a new name when the
  829. * old logfile reaches your limit. If a rotated log file is already present, it
  830. * will be overwritten.
  831. *
  832. * Defaults to 100 MB
  833. */
  834. 'log_rotate_size' => 100 * 1024 * 1024,
  835.  
  836.  
  837. /**
  838. * Alternate Code Locations
  839. *
  840. * Some of the Nextcloud code may be stored in alternate locations.
  841. */
  842.  
  843. /**
  844. * This section is for configuring the download links for Nextcloud clients, as
  845. * seen in the first-run wizard and on Personal pages.
  846. *
  847. * Defaults to:
  848. * - Desktop client: ``https://nextcloud.com/install/#install-clients``
  849. * - Android client: ``https://play.google.com/store/apps/details?id=com.nextcloud.client``
  850. * - iOS client: ``https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8``
  851. * - iOS client app id: ``1125420102``
  852. */
  853. 'customclient_desktop' =>
  854. 'https://nextcloud.com/install/#install-clients',
  855. 'customclient_android' =>
  856. 'https://play.google.com/store/apps/details?id=com.nextcloud.client',
  857. 'customclient_ios' =>
  858. 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
  859. 'customclient_ios_appid' =>
  860. '1125420102',
  861. /**
  862. * Apps
  863. *
  864. * Options for the Apps folder, Apps store, and App code checker.
  865. */
  866.  
  867. /**
  868. * When enabled, admins may install apps from the Nextcloud app store.
  869. *
  870. * Defaults to ``true``
  871. */
  872. 'appstoreenabled' => true,
  873.  
  874. /**
  875. * Use the ``apps_paths`` parameter to set the location of the Apps directory,
  876. * which should be scanned for available apps, and where user-specific apps
  877. * should be installed from the Apps store. The ``path`` defines the absolute
  878. * file system path to the app folder. The key ``url`` defines the HTTP Web path
  879. * to that folder, starting from the Nextcloud webroot. The key ``writable``
  880. * indicates if a Web server can write files to that folder.
  881. */
  882. 'apps_paths' => array(
  883. array(
  884. 'path'=> '/var/www/nextcloud/apps',
  885. 'url' => '/apps',
  886. 'writable' => true,
  887. ),
  888. ),
  889.  
  890. /**
  891. * @see appcodechecker
  892. */
  893.  
  894. /**
  895. * Previews
  896. *
  897. * Nextcloud supports previews of image files, the covers of MP3 files, and text
  898. * files. These options control enabling and disabling previews, and thumbnail
  899. * size.
  900. */
  901.  
  902. /**
  903. * By default, Nextcloud can generate previews for the following filetypes:
  904. *
  905. * - Image files
  906. * - Covers of MP3 files
  907. * - Text documents
  908. *
  909. * Valid values are ``true``, to enable previews, or
  910. * ``false``, to disable previews
  911. *
  912. * Defaults to ``true``
  913. */
  914. 'enable_previews' => true,
  915. /**
  916. * The maximum width, in pixels, of a preview. A value of ``null`` means there
  917. * is no limit.
  918. *
  919. * Defaults to ``4096``
  920. */
  921. 'preview_max_x' => 4096,
  922. /**
  923. * The maximum height, in pixels, of a preview. A value of ``null`` means there
  924. * is no limit.
  925. *
  926. * Defaults to ``4096``
  927. */
  928. 'preview_max_y' => 4096,
  929.  
  930. /**
  931. * max file size for generating image previews with imagegd (default behavior)
  932. * If the image is bigger, it'll try other preview generators, but will most
  933. * likely show the default mimetype icon. Set to -1 for no limit.
  934. *
  935. * Defaults to ``50`` megabytes
  936. */
  937. 'preview_max_filesize_image' => 50,
  938.  
  939. /**
  940. * custom path for LibreOffice/OpenOffice binary
  941. *
  942. *
  943. * Defaults to ``''`` (empty string)
  944. */
  945. 'preview_libreoffice_path' => '/usr/bin/libreoffice',
  946. /**
  947. * Use this if LibreOffice/OpenOffice requires additional arguments.
  948. *
  949. * Defaults to ``''`` (empty string)
  950. */
  951. 'preview_office_cl_parameters' =>
  952. ' --headless --nologo --nofirststartwizard --invisible --norestore '.
  953. '--convert-to png --outdir ',
  954.  
  955. /**
  956. * Only register providers that have been explicitly enabled
  957. *
  958. * The following providers are disabled by default due to performance or privacy
  959. * concerns:
  960. *
  961. * - OC\Preview\Illustrator
  962. * - OC\Preview\Movie
  963. * - OC\Preview\MSOffice2003
  964. * - OC\Preview\MSOffice2007
  965. * - OC\Preview\MSOfficeDoc
  966. * - OC\Preview\OpenDocument
  967. * - OC\Preview\PDF
  968. * - OC\Preview\Photoshop
  969. * - OC\Preview\Postscript
  970. * - OC\Preview\StarOffice
  971. * - OC\Preview\SVG
  972. * - OC\Preview\TIFF
  973. * - OC\Preview\Font
  974. *
  975. * The following providers are not available in Microsoft Windows:
  976. *
  977. * - OC\Preview\Movie
  978. * - OC\Preview\MSOfficeDoc
  979. * - OC\Preview\MSOffice2003
  980. * - OC\Preview\MSOffice2007
  981. * - OC\Preview\OpenDocument
  982. * - OC\Preview\StarOffice
  983. *
  984. * Defaults to the following providers:
  985. *
  986. * - OC\Preview\BMP
  987. * - OC\Preview\GIF
  988. * - OC\Preview\HEIC
  989. * - OC\Preview\JPEG
  990. * - OC\Preview\MarkDown
  991. * - OC\Preview\MP3
  992. * - OC\Preview\PNG
  993. * - OC\Preview\TXT
  994. * - OC\Preview\XBitmap
  995. */
  996. 'enabledPreviewProviders' => array(
  997. 'OC\Preview\PNG',
  998. 'OC\Preview\JPEG',
  999. 'OC\Preview\GIF',
  1000. 'OC\Preview\HEIC',
  1001. 'OC\Preview\BMP',
  1002. 'OC\Preview\XBitmap',
  1003. 'OC\Preview\MP3',
  1004. 'OC\Preview\TXT',
  1005. 'OC\Preview\MarkDown'
  1006. ),
  1007.  
  1008. /**
  1009. * LDAP
  1010. *
  1011. * Global settings used by LDAP User and Group Backend
  1012. */
  1013.  
  1014. /**
  1015. * defines the interval in minutes for the background job that checks user
  1016. * existence and marks them as ready to be cleaned up. The number is always
  1017. * minutes. Setting it to 0 disables the feature.
  1018. * See command line (occ) methods ``ldap:show-remnants`` and ``user:delete``
  1019. *
  1020. * Defaults to ``51`` minutes
  1021. */
  1022. 'ldapUserCleanupInterval' => 51,
  1023.  
  1024. /**
  1025. * Sort groups in the user settings by name instead of the user count
  1026. *
  1027. * By enabling this the user count beside the group name is disabled as well.
  1028. */
  1029. 'sort_groups_by_name' => false,
  1030.  
  1031. /**
  1032. * Comments
  1033. *
  1034. * Global settings for the Comments infrastructure
  1035. */
  1036.  
  1037. /**
  1038. * Replaces the default Comments Manager Factory. This can be utilized if an
  1039. * own or 3rdParty CommentsManager should be used that – for instance – uses the
  1040. * filesystem instead of the database to keep the comments.
  1041. *
  1042. * Defaults to ``\OC\Comments\ManagerFactory``
  1043. */
  1044. 'comments.managerFactory' => '\OC\Comments\ManagerFactory',
  1045.  
  1046. /**
  1047. * Replaces the default System Tags Manager Factory. This can be utilized if an
  1048. * own or 3rdParty SystemTagsManager should be used that – for instance – uses the
  1049. * filesystem instead of the database to keep the tags.
  1050. *
  1051. * Defaults to ``\OC\SystemTag\ManagerFactory``
  1052. */
  1053. 'systemtags.managerFactory' => '\OC\SystemTag\ManagerFactory',
  1054.  
  1055. /**
  1056. * Maintenance
  1057. *
  1058. * These options are for halting user activity when you are performing server
  1059. * maintenance.
  1060. */
  1061.  
  1062. /**
  1063. * Enable maintenance mode to disable Nextcloud
  1064. *
  1065. * If you want to prevent users from logging in to Nextcloud before you start
  1066. * doing some maintenance work, you need to set the value of the maintenance
  1067. * parameter to true. Please keep in mind that users who are already logged-in
  1068. * are kicked out of Nextcloud instantly.
  1069. *
  1070. * Defaults to ``false``
  1071. */
  1072. 'maintenance' => false,
  1073.  
  1074.  
  1075. /**
  1076. * SSL
  1077. */
  1078.  
  1079. /**
  1080. * Extra SSL options to be used for configuration.
  1081. *
  1082. * Defaults to an empty array.
  1083. */
  1084. 'openssl' => array(
  1085. 'config' => '/absolute/location/of/openssl.cnf',
  1086. ),
  1087.  
  1088. /**
  1089. * Memory caching backend configuration
  1090. *
  1091. * Available cache backends:
  1092. *
  1093. * * ``\OC\Memcache\APCu`` APC user backend
  1094. * * ``\OC\Memcache\ArrayCache`` In-memory array-based backend (not recommended)
  1095. * * ``\OC\Memcache\Memcached`` Memcached backend
  1096. * * ``\OC\Memcache\Redis`` Redis backend
  1097. *
  1098. * Advice on choosing between the various backends:
  1099. *
  1100. * * APCu should be easiest to install. Almost all distributions have packages.
  1101. * Use this for single user environment for all caches.
  1102. * * Use Redis or Memcached for distributed environments.
  1103. * For the local cache (you can configure two) take APCu.
  1104. */
  1105.  
  1106. /**
  1107. * Memory caching backend for locally stored data
  1108. *
  1109. * * Used for host-specific data, e.g. file paths
  1110. *
  1111. * Defaults to ``none``
  1112. */
  1113. 'memcache.local' => '\OC\Memcache\APCu',
  1114.  
  1115. /**
  1116. * Memory caching backend for distributed data
  1117. *
  1118. * * Used for installation-specific data, e.g. database caching
  1119. * * If unset, defaults to the value of memcache.local
  1120. *
  1121. * Defaults to ``none``
  1122. */
  1123. 'memcache.distributed' => '\OC\Memcache\Memcached',
  1124.  
  1125. /**
  1126. * Connection details for redis to use for memory caching in a single server configuration.
  1127. *
  1128. * For enhanced security it is recommended to configure Redis
  1129. * to require a password. See http://redis.io/topics/security
  1130. * for more information.
  1131. */
  1132. 'redis' => [
  1133. 'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
  1134. 'port' => 6379,
  1135. 'timeout' => 0.0,
  1136. 'password' => '', // Optional, if not defined no password will be used.
  1137. 'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
  1138. ],
  1139.  
  1140. /**
  1141. * Connection details for a Redis Cluster
  1142. *
  1143. * Only for use with Redis Clustering, for Sentinel-based setups use the single
  1144. * server configuration above, and perform HA on the hostname.
  1145. *
  1146. * Redis Cluster support requires the php module phpredis in version 3.0.0 or
  1147. * higher.
  1148. *
  1149. * Available failover modes:
  1150. * - \RedisCluster::FAILOVER_NONE - only send commands to master nodes (default)
  1151. * - \RedisCluster::FAILOVER_ERROR - failover to slaves for read commands if master is unavailable (recommended)
  1152. * - \RedisCluster::FAILOVER_DISTRIBUTE - randomly distribute read commands across master and slaves
  1153. *
  1154. * WARNING: FAILOVER_DISTRIBUTE is a not recommended setting and we strongly
  1155. * suggest to not use it if you use Redis for file locking. Due to the way Redis
  1156. * is synchronized it could happen, that the read for an existing lock is
  1157. * scheduled to a slave that is not fully synchronized with the connected master
  1158. * which then causes a FileLocked exception.
  1159. *
  1160. * See https://redis.io/topics/cluster-spec for details about the Redis cluster
  1161. *
  1162. * Authentication works with phpredis version 4.2.1+. See
  1163. * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
  1164. */
  1165. 'redis.cluster' => [
  1166. 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
  1167. 'localhost:7000',
  1168. 'localhost:7001',
  1169. ],
  1170. 'timeout' => 0.0,
  1171. 'read_timeout' => 0.0,
  1172. 'failover_mode' => \RedisCluster::FAILOVER_ERROR,
  1173. 'password' => '', // Optional, if not defined no password will be used.
  1174. ],
  1175.  
  1176.  
  1177. /**
  1178. * Server details for one or more memcached servers to use for memory caching.
  1179. */
  1180. 'memcached_servers' => array(
  1181. // hostname, port and optional weight. Also see:
  1182. // http://www.php.net/manual/en/memcached.addservers.php
  1183. // http://www.php.net/manual/en/memcached.addserver.php
  1184. array('localhost', 11211),
  1185. //array('other.host.local', 11211),
  1186. ),
  1187.  
  1188. /**
  1189. * Connection options for memcached, see http://apprize.info/php/scaling/15.html
  1190. */
  1191. 'memcached_options' => array(
  1192. // Set timeouts to 50ms
  1193. \Memcached::OPT_CONNECT_TIMEOUT => 50,
  1194. \Memcached::OPT_RETRY_TIMEOUT => 50,
  1195. \Memcached::OPT_SEND_TIMEOUT => 50,
  1196. \Memcached::OPT_RECV_TIMEOUT => 50,
  1197. \Memcached::OPT_POLL_TIMEOUT => 50,
  1198.  
  1199. // Enable compression
  1200. \Memcached::OPT_COMPRESSION => true,
  1201.  
  1202. // Turn on consistent hashing
  1203. \Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
  1204.  
  1205. // Enable Binary Protocol
  1206. \Memcached::OPT_BINARY_PROTOCOL => true,
  1207.  
  1208. // Binary serializer vill be enabled if the igbinary PECL module is available
  1209. //\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
  1210. ),
  1211.  
  1212.  
  1213. /**
  1214. * Location of the cache folder, defaults to ``data/$user/cache`` where
  1215. * ``$user`` is the current user. When specified, the format will change to
  1216. * ``$cache_path/$user`` where ``$cache_path`` is the configured cache directory
  1217. * and ``$user`` is the user.
  1218. *
  1219. * Defaults to ``''`` (empty string)
  1220. */
  1221. 'cache_path' => '',
  1222.  
  1223. /**
  1224. * TTL of chunks located in the cache folder before they're removed by
  1225. * garbage collection (in seconds). Increase this value if users have
  1226. * issues uploading very large files via the Nextcloud Client as upload isn't
  1227. * completed within one day.
  1228. *
  1229. * Defaults to ``60*60*24`` (1 day)
  1230. */
  1231. 'cache_chunk_gc_ttl' => 60*60*24,
  1232.  
  1233. /**
  1234. * Using Object Store with Nextcloud
  1235. */
  1236.  
  1237. /**
  1238. * This example shows how to configure Nextcloud to store all files in a
  1239. * swift object storage.
  1240. *
  1241. * It is important to note that Nextcloud in object store mode will expect
  1242. * exclusive access to the object store container because it only stores the
  1243. * binary data for each file. The metadata is currently kept in the local
  1244. * database for performance reasons.
  1245. *
  1246. * WARNING: The current implementation is incompatible with any app that uses
  1247. * direct file IO and circumvents our virtual filesystem. That includes
  1248. * Encryption and Gallery. Gallery will store thumbnails directly in the
  1249. * filesystem and encryption will cause severe overhead because key files need
  1250. * to be fetched in addition to any requested file.
  1251. *
  1252. * One way to test is applying for a trystack account at http://trystack.org/
  1253. */
  1254. 'objectstore' => [
  1255. 'class' => 'OC\\Files\\ObjectStore\\Swift',
  1256. 'arguments' => [
  1257. // trystack will use your facebook id as the user name
  1258. 'username' => 'facebook100000123456789',
  1259. // in the trystack dashboard go to user -> settings -> API Password to
  1260. // generate a password
  1261. 'password' => 'Secr3tPaSSWoRdt7',
  1262. // must already exist in the objectstore, name can be different
  1263. 'container' => 'nextcloud',
  1264. // prefix to prepend to the fileid, default is 'oid:urn:'
  1265. 'objectPrefix' => 'oid:urn:',
  1266. // create the container if it does not exist. default is false
  1267. 'autocreate' => true,
  1268. // required, dev-/trystack defaults to 'RegionOne'
  1269. 'region' => 'RegionOne',
  1270. // The Identity / Keystone endpoint
  1271. 'url' => 'http://8.21.28.222:5000/v2.0',
  1272. // required on dev-/trystack
  1273. 'tenantName' => 'facebook100000123456789',
  1274. // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
  1275. // if omitted
  1276. 'serviceName' => 'swift',
  1277. // The Interface / url Type, optional
  1278. 'urlType' => 'internal'
  1279. ],
  1280. ],
  1281.  
  1282. /**
  1283. * To use swift V3
  1284. */
  1285. 'objectstore' => [
  1286. 'class' => 'OC\\Files\\ObjectStore\\Swift',
  1287. 'arguments' => [
  1288. 'autocreate' => true,
  1289. 'user' => [
  1290. 'name' => 'swift',
  1291. 'password' => 'swift',
  1292. 'domain' => [
  1293. 'name' => 'default',
  1294. ],
  1295. ],
  1296. 'scope' => [
  1297. 'project' => [
  1298. 'name' => 'service',
  1299. 'domain' => [
  1300. 'name' => 'default',
  1301. ],
  1302. ],
  1303. ],
  1304. 'tenantName' => 'service',
  1305. 'serviceName' => 'swift',
  1306. 'region' => 'regionOne',
  1307. 'url' => 'http://yourswifthost:5000/v3',
  1308. 'bucket' => 'nextcloud',
  1309. ],
  1310. ],
  1311.  
  1312.  
  1313. /**
  1314. * Sharing
  1315. *
  1316. * Global settings for Sharing
  1317. */
  1318.  
  1319. /**
  1320. * Replaces the default Share Provider Factory. This can be utilized if
  1321. * own or 3rdParty Share Providers are used that – for instance – use the
  1322. * filesystem instead of the database to keep the share information.
  1323. *
  1324. * Defaults to ``\OC\Share20\ProviderFactory``
  1325. */
  1326. 'sharing.managerFactory' => '\OC\Share20\ProviderFactory',
  1327.  
  1328. /**
  1329. * Define max number of results returned by the user search for auto-completion
  1330. * Default is unlimited (value set to 0).
  1331. */
  1332. 'sharing.maxAutocompleteResults' => 0,
  1333.  
  1334. /**
  1335. * Define the minimum length of the search string before we start auto-completion
  1336. * Default is no limit (value set to 0)
  1337. */
  1338. 'sharing.minSearchStringLength' => 0,
  1339.  
  1340. /**
  1341. * Set to true to enable that internal shares need to be accepted by the users by default.
  1342. * Users can change this for their account in their personal sharing settings
  1343. */
  1344. 'sharing.enable_share_accept' => false,
  1345.  
  1346. /**
  1347. * Set to true to enforce that internal shares need to be accepted
  1348. */
  1349. 'sharing.force_share_accept' => false,
  1350.  
  1351.  
  1352. /**
  1353. * All other configuration options
  1354. */
  1355.  
  1356. /**
  1357. * Additional driver options for the database connection, eg. to enable SSL
  1358. * encryption in MySQL or specify a custom wait timeout on a cheap hoster.
  1359. */
  1360. 'dbdriveroptions' => array(
  1361. PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
  1362. PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
  1363. ),
  1364.  
  1365. /**
  1366. * sqlite3 journal mode can be specified using this configuration parameter -
  1367. * can be 'WAL' or 'DELETE' see for more details https://www.sqlite.org/wal.html
  1368. */
  1369. 'sqlite.journal_mode' => 'DELETE',
  1370.  
  1371. /**
  1372. * During setup, if requirements are met (see below), this setting is set to true
  1373. * and MySQL can handle 4 byte characters instead of 3 byte characters.
  1374. *
  1375. * If you want to convert an existing 3-byte setup into a 4-byte setup please
  1376. * set the parameters in MySQL as mentioned below and run the migration command:
  1377. * ./occ db:convert-mysql-charset
  1378. * The config setting will be set automatically after a successful run.
  1379. *
  1380. * Consult the documentation for more details.
  1381. *
  1382. * MySQL requires a special setup for longer indexes (> 767 bytes) which are
  1383. * needed:
  1384. *
  1385. * [mysqld]
  1386. * innodb_large_prefix=ON
  1387. * innodb_file_format=Barracuda
  1388. * innodb_file_per_table=ON
  1389. *
  1390. * Tables will be created with
  1391. * * character set: utf8mb4
  1392. * * collation: utf8mb4_bin
  1393. * * row_format: compressed
  1394. *
  1395. * See:
  1396. * https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html
  1397. * https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_large_prefix
  1398. * https://mariadb.com/kb/en/mariadb/xtradbinnodb-server-system-variables/#innodb_large_prefix
  1399. * http://www.tocker.ca/2013/10/31/benchmarking-innodb-page-compression-performance.html
  1400. * http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/
  1401. */
  1402. 'mysql.utf8mb4' => false,
  1403.  
  1404. /**
  1405. * Database types that are supported for installation.
  1406. *
  1407. * Available:
  1408. * - sqlite (SQLite3)
  1409. * - mysql (MySQL)
  1410. * - pgsql (PostgreSQL)
  1411. * - oci (Oracle)
  1412. *
  1413. * Defaults to the following databases:
  1414. * - sqlite (SQLite3)
  1415. * - mysql (MySQL)
  1416. * - pgsql (PostgreSQL)
  1417. */
  1418. 'supportedDatabases' => array(
  1419. 'sqlite',
  1420. 'mysql',
  1421. 'pgsql',
  1422. 'oci',
  1423. ),
  1424.  
  1425. /**
  1426. * Override where Nextcloud stores temporary files. Useful in situations where
  1427. * the system temporary directory is on a limited space ramdisk or is otherwise
  1428. * restricted, or if external storages which do not support streaming are in
  1429. * use.
  1430. *
  1431. * The Web server user must have write access to this directory.
  1432. */
  1433. 'tempdirectory' => '/tmp/nextcloudtemp',
  1434.  
  1435. /**
  1436. * Hashing
  1437. */
  1438.  
  1439. /**
  1440. * By default Nextcloud will use the Argon2 password hashing if available.
  1441. * However if for whatever reason you want to stick with the PASSWORD_DEFAULT
  1442. * of your php version. Then set the setting to true.
  1443. */
  1444. 'hashing_default_password' => false,
  1445.  
  1446. /**
  1447. *
  1448. * Nextcloud uses the Argon2 algorithm (with PHP >= 7.2) to create hashes by its
  1449. * own and exposes its configuration options as following. More information can
  1450. * be found at: https://www.php.net/manual/en/function.password-hash.php
  1451. */
  1452.  
  1453. /**
  1454. * The allowed maximum memory in KiB to be used by the algorithm for computing a
  1455. * hash. The smallest possible value is 8. Values that undershoot the minimum
  1456. * will be ignored in favor of the default.
  1457. */
  1458. 'hashingMemoryCost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
  1459.  
  1460. /**
  1461. * The allowed maximum time in seconds that can be used by the algorithm for
  1462. * computing a hash. The value must be an integer, and the minimum value is 1.
  1463. * Values that undershoot the minimum will be ignored in favor of the default.
  1464. */
  1465. 'hashingTimeCost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
  1466.  
  1467. /**
  1468. * The allowed number of CPU threads that can be used by the algorithm for
  1469. * computing a hash. The value must be an integer, and the minimum value is 1.
  1470. * Rationally it does not help to provide a number higher than the available
  1471. * threads on the machine. Values that undershoot the minimum will be ignored
  1472. * in favor of the default.
  1473. */
  1474. 'hashingThreads' => PASSWORD_ARGON2_DEFAULT_THREADS,
  1475.  
  1476. /**
  1477. * The hashing cost used by hashes generated by Nextcloud
  1478. * Using a higher value requires more time and CPU power to calculate the hashes
  1479. */
  1480. 'hashingCost' => 10,
  1481.  
  1482. /**
  1483. * Blacklist a specific file or files and disallow the upload of files
  1484. * with this name. ``.htaccess`` is blocked by default.
  1485. * WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.
  1486. *
  1487. * Defaults to ``array('.htaccess')``
  1488. */
  1489. 'blacklisted_files' => array('.htaccess'),
  1490.  
  1491. /**
  1492. * Define a default folder for shared files and folders other than root.
  1493. * Changes to this value will only have effect on new shares.
  1494. *
  1495. * Defaults to ``/``
  1496. */
  1497. 'share_folder' => '/',
  1498.  
  1499. /**
  1500. * If you are applying a theme to Nextcloud, enter the name of the theme here.
  1501. * The default location for themes is ``nextcloud/themes/``.
  1502. *
  1503. * Defaults to the theming app which is shipped since Nextcloud 9
  1504. */
  1505. 'theme' => '',
  1506.  
  1507. /**
  1508. * The default cipher for encrypting files. Currently AES-128-CFB and
  1509. * AES-256-CFB are supported.
  1510. */
  1511. 'cipher' => 'AES-256-CFB',
  1512.  
  1513. /**
  1514. * The minimum Nextcloud desktop client version that will be allowed to sync with
  1515. * this server instance. All connections made from earlier clients will be denied
  1516. * by the server. Defaults to the minimum officially supported Nextcloud desktop
  1517. * clientversion at the time of release of this server version.
  1518. *
  1519. * When changing this, note that older unsupported versions of the Nextcloud desktop
  1520. * client may not function as expected, and could lead to permanent data loss for
  1521. * clients or other unexpected results.
  1522. *
  1523. * Defaults to ``2.0.0``
  1524. */
  1525. 'minimum.supported.desktop.version' => '2.0.0',
  1526.  
  1527. /**
  1528. * EXPERIMENTAL: option whether to include external storage in quota
  1529. * calculation, defaults to false.
  1530. *
  1531. * Defaults to ``false``
  1532. */
  1533. 'quota_include_external_storage' => false,
  1534.  
  1535. /**
  1536. * When an external storage is unavailable for some reasons, it will be flagged
  1537. * as such for 10 minutes. When the trigger is a failed authentication attempt
  1538. * the delay is higher and can be controlled with this option. The motivation
  1539. * is to make account lock outs at Active Directories (and compatible) more
  1540. * unlikely.
  1541. *
  1542. * Defaults to ``1800`` (seconds)
  1543. */
  1544. 'external_storage.auth_availability_delay' => 1800,
  1545.  
  1546. /**
  1547. * Specifies how often the local filesystem (the Nextcloud data/ directory, and
  1548. * NFS mounts in data/) is checked for changes made outside Nextcloud. This
  1549. * does not apply to external storages.
  1550. *
  1551. * 0 -> Never check the filesystem for outside changes, provides a performance
  1552. * increase when it's certain that no changes are made directly to the
  1553. * filesystem
  1554. *
  1555. * 1 -> Check each file or folder at most once per request, recommended for
  1556. * general use if outside changes might happen.
  1557. *
  1558. * Defaults to ``0``
  1559. */
  1560. 'filesystem_check_changes' => 0,
  1561.  
  1562. /**
  1563. * By default Nextcloud will store the part files created during upload in the
  1564. * same storage as the upload target. Setting this to false will store the part
  1565. * files in the root of the users folder which might be required to work with certain
  1566. * external storage setups that have limited rename capabilities.
  1567. *
  1568. * Defaults to ``true``
  1569. */
  1570. 'part_file_in_storage' => true,
  1571.  
  1572. /**
  1573. * Where ``mount.json`` file should be stored, defaults to ``data/mount.json``
  1574. * in the Nextcloud directory.
  1575. *
  1576. * Defaults to ``data/mount.json`` in the Nextcloud directory.
  1577. */
  1578. 'mount_file' => '/var/www/nextcloud/data/mount.json',
  1579.  
  1580. /**
  1581. * When ``true``, prevent Nextcloud from changing the cache due to changes in
  1582. * the filesystem for all storage.
  1583. *
  1584. * Defaults to ``false``
  1585. */
  1586. 'filesystem_cache_readonly' => false,
  1587.  
  1588. /**
  1589. * Secret used by Nextcloud for various purposes, e.g. to encrypt data. If you
  1590. * lose this string there will be data corruption.
  1591. */
  1592. 'secret' => '',
  1593.  
  1594. /**
  1595. * List of trusted proxy servers
  1596. *
  1597. * You may set this to an array containing a combination of
  1598. * - IPv4 addresses, e.g. `192.168.2.123`
  1599. * - IPv4 ranges in CIDR notation, e.g. `192.168.2.0/24`
  1600. * - IPv6 addresses, e.g. `fd9e:21a7:a92c:2323::1`
  1601. *
  1602. * _(CIDR notation for IPv6 is currently work in progress and thus not
  1603. * available as of yet)_
  1604. *
  1605. * When an incoming request's `REMOTE_ADDR` matches any of the IP addresses
  1606. * specified here, it is assumed to be a proxy instead of a client. Thus, the
  1607. * client IP will be read from the HTTP header specified in
  1608. * `forwarded_for_headers` instead of from `REMOTE_ADDR`.
  1609. *
  1610. * So if you configure `trusted_proxies`, also consider setting
  1611. * `forwarded_for_headers` which otherwise defaults to `HTTP_X_FORWARDED_FOR`
  1612. * (the `X-Forwarded-For` header).
  1613. *
  1614. * Defaults to an empty array.
  1615. */
  1616. 'trusted_proxies' => array('203.0.113.45', '198.51.100.128', '192.168.2.0/24'),
  1617.  
  1618. /**
  1619. * Headers that should be trusted as client IP address in combination with
  1620. * `trusted_proxies`. If the HTTP header looks like 'X-Forwarded-For', then use
  1621. * 'HTTP_X_FORWARDED_FOR' here.
  1622. *
  1623. * If set incorrectly, a client can spoof their IP address as visible to
  1624. * Nextcloud, bypassing access controls and making logs useless!
  1625. *
  1626. * Defaults to ``'HTTP_X_FORWARDED_FOR'``
  1627. */
  1628. 'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
  1629.  
  1630. /**
  1631. * max file size for animating gifs on public-sharing-site.
  1632. * If the gif is bigger, it'll show a static preview
  1633. *
  1634. * Value represents the maximum filesize in megabytes. Set to ``-1`` for
  1635. * no limit.
  1636. *
  1637. * Defaults to ``10`` megabytes
  1638. */
  1639. 'max_filesize_animated_gifs_public_sharing' => 10,
  1640.  
  1641.  
  1642. /**
  1643. * Enables transactional file locking.
  1644. * This is enabled by default.
  1645. *
  1646. * Prevents concurrent processes from accessing the same files
  1647. * at the same time. Can help prevent side effects that would
  1648. * be caused by concurrent operations. Mainly relevant for
  1649. * very large installations with many users working with
  1650. * shared files.
  1651. *
  1652. * Defaults to ``true``
  1653. */
  1654. 'filelocking.enabled' => true,
  1655.  
  1656. /**
  1657. * Set the lock's time-to-live in seconds.
  1658. *
  1659. * Any lock older than this will be automatically cleaned up.
  1660. *
  1661. * Defaults to ``60*60`` seconds (1 hour) or the php
  1662. * max_execution_time, whichever is higher.
  1663. */
  1664. 'filelocking.ttl' => 60*60,
  1665.  
  1666. /**
  1667. * Memory caching backend for file locking
  1668. *
  1669. * Because most memcache backends can clean values without warning using redis
  1670. * is highly recommended to *avoid data loss*.
  1671. *
  1672. * Defaults to ``none``
  1673. */
  1674. 'memcache.locking' => '\\OC\\Memcache\\Redis',
  1675.  
  1676. /** * Enable locking debug logging * * Note that this can lead to a very large volume of log items being written which can lead * to performance degradation and large log files on busy instance.
  1677. * * Thus enabling this in production for longer periods of time is not recommended * or should be used together with the ``log.condition`` setting. */
  1678. 'filelocking.debug' => false,
  1679.  
  1680. /**
  1681. * Disable the web based updater
  1682. */
  1683. 'upgrade.disable-web' => false,
  1684.  
  1685. /**
  1686. * Set this Nextcloud instance to debugging mode
  1687. *
  1688. * Only enable this for local development and not in production environments
  1689. * This will disable the minifier and outputs some additional debug information
  1690. *
  1691. * Defaults to ``false``
  1692. */
  1693. 'debug' => false,
  1694.  
  1695. /**
  1696. * Sets the data-fingerprint of the current data served
  1697. *
  1698. * This is a property used by the clients to find out if a backup has been
  1699. * restored on the server. Once a backup is restored run
  1700. * ./occ maintenance:data-fingerprint
  1701. * To set this to a new value.
  1702. *
  1703. * Updating/Deleting this value can make connected clients stall until
  1704. * the user has resolved conflicts.
  1705. *
  1706. * Defaults to ``''`` (empty string)
  1707. */
  1708. 'data-fingerprint' => '',
  1709.  
  1710. /**
  1711. * This entry is just here to show a warning in case somebody copied the sample
  1712. * configuration. DO NOT ADD THIS SWITCH TO YOUR CONFIGURATION!
  1713. *
  1714. * If you, brave person, have read until here be aware that you should not
  1715. * modify *ANY* settings in this file without reading the documentation.
  1716. */
  1717. 'copied_sample_config' => true,
  1718.  
  1719. /**
  1720. * use a custom lookup server to publish user data
  1721. */
  1722. 'lookup_server' => 'https://lookup.nextcloud.com',
  1723.  
  1724. /**
  1725. * set to true if the server is used in a setup based on Nextcloud's Global Scale architecture
  1726. */
  1727. 'gs.enabled' => false,
  1728.  
  1729. /**
  1730. * by default federation is only used internally in a Global Scale setup
  1731. * If you want to allow federation outside of your environment set it to 'global'
  1732. */
  1733. 'gs.federation' => 'internal',
  1734.  
  1735. /**
  1736. * List of incompatible user agents opted out from Same Site Cookie Protection.
  1737. * Some user agents are notorious and don't really properly follow HTTP
  1738. * specifications. For those, have an opt-out.
  1739. *
  1740. * WARNING: only use this if you know what you are doing
  1741. */
  1742. 'csrf.optout' => array(
  1743. '/^WebDAVFS/', // OS X Finder
  1744. '/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
  1745. ),
  1746.  
  1747. /**
  1748. * By default there is on public pages a link shown that allows users to
  1749. * learn about the "simple sign up" - see https://nextcloud.com/signup/
  1750. *
  1751. * If this is set to "false" it will not show the link.
  1752. */
  1753. 'simpleSignUpLink.shown' => true,
  1754.  
  1755. /**
  1756. * By default autocompletion is enabled for the login form on Nextcloud's login page.
  1757. * While this is enabled, browsers are allowed to "remember" login names and such.
  1758. * Some companies require it to be disabled to comply with their security policy.
  1759. *
  1760. * Simply set this property to "false", if you want to turn this feature off.
  1761. */
  1762.  
  1763. 'login_form_autocomplete' => true,
  1764. );
RAW Paste Data