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.

преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. * Where user files are stored. The SQLite database is also stored here, when
  24. * you use SQLite.
  25. *
  26. * Default to ``data/`` in the Nextcloud directory.
  27. */
  28. 'datadirectory' => '{{nextcloud_data_directory}}',
  29. /**
  30. * Indicates whether the Nextcloud instance was installed successfully; ``true``
  31. * indicates a successful installation, and ``false`` indicates an unsuccessful
  32. * installation.
  33. *
  34. * Defaults to ``false``
  35. */
  36. 'installed' => false,
  37. /**
  38. * During setup, if requirements are met (see below), this setting is set to true
  39. * and MySQL can handle 4 byte characters instead of 3 byte characters.
  40. *
  41. * If you want to convert an existing 3-byte setup into a 4-byte setup please
  42. * set the parameters in MySQL as mentioned below and run the migration command:
  43. * ./occ db:convert-mysql-charset
  44. * The config setting will be set automatically after a successful run.
  45. *
  46. * Consult the documentation for more details.
  47. *
  48. * MySQL requires a special setup for longer indexes (> 767 bytes) which are
  49. * needed:
  50. *
  51. * [mysqld]
  52. * innodb_large_prefix=ON
  53. * innodb_file_format=Barracuda
  54. * innodb_file_per_table=ON
  55. *
  56. * Tables will be created with
  57. * * character set: utf8mb4
  58. * * collation: utf8mb4_bin
  59. * * row_format: compressed
  60. *
  61. * See:
  62. * https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html
  63. * https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_large_prefix
  64. * https://mariadb.com/kb/en/mariadb/xtradbinnodb-server-system-variables/#innodb_large_prefix
  65. * http://www.tocker.ca/2013/10/31/benchmarking-innodb-page-compression-performance.html
  66. * http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/
  67. */
  68. 'mysql.utf8mb4' => true,
  69. /**
  70. * User Experience
  71. *
  72. * These optional parameters control some aspects of the user interface. Default
  73. * values, where present, are shown.
  74. */
  75. /**
  76. * This sets the default language on your Nextcloud server, using ISO_639-1
  77. * language codes such as ``en`` for English, ``de`` for German, and ``fr`` for
  78. * French. It overrides automatic language detection on public pages like login
  79. * or shared items. User's language preferences configured under "personal ->
  80. * language" override this setting after they have logged in.
  81. *
  82. * Defaults to ``en``
  83. */
  84. 'default_language' => '{{nextcloud_default_language}}',
  85. /**
  86. * With this setting a language can be forced for all users. If a language is
  87. * forced, the users are also unable to change their language in the personal
  88. * settings. If users shall be unable to change their language, but users have
  89. * different languages, this value can be set to ``true`` instead of a language
  90. * code.
  91. *
  92. * Defaults to ``false``
  93. */
  94. {% if nextcloud_force_language %}
  95. 'force_language' => '{{nextcloud_force_language}}',
  96. {% endif %}
  97. /**
  98. * Set the default app to open on login. Use the app names as they appear in the
  99. * URL after clicking them in the Apps menu, such as documents, calendar, and
  100. * gallery. You can use a comma-separated list of app names, so if the first
  101. * app is not enabled for a user then Nextcloud will try the second one, and so
  102. * on. If no enabled apps are found it defaults to the Files app.
  103. *
  104. * Defaults to ``files``
  105. */
  106. 'defaultapp' => '{{nextcloud_defaultapp}}',
  107. /**
  108. * To have clean URLs without `/index.php` this parameter needs to be configured.
  109. *
  110. * This parameter will be written as "RewriteBase" on update and installation of
  111. * Nextcloud to your `.htaccess` file. While this value is often simply the URL
  112. * path of the Nextcloud installation it cannot be set automatically properly in
  113. * every scenario and needs thus some manual configuration.
  114. *
  115. * In a standard Apache setup this usually equals the folder that Nextcloud is
  116. * accessible at. So if Nextcloud is accessible via "https://mycloud.org/nextcloud"
  117. * the correct value would most likely be "/nextcloud". If Nextcloud is running
  118. * under "https://mycloud.org/" then it would be "/".
  119. *
  120. * Note that the above rule is not valid in every case, as there are some rare setup
  121. * cases where this may not apply. However, to avoid any update problems this
  122. * configuration value is explicitly opt-in.
  123. *
  124. * After setting this value run `occ maintenance:update:htaccess`. Now, when the
  125. * following conditions are met Nextcloud URLs won't contain `index.php`:
  126. *
  127. * - `mod_rewrite` is installed
  128. * - `mod_env` is installed
  129. *
  130. * Defaults to ``''`` (empty string)
  131. */
  132. 'htaccess.RewriteBase' => '/',
  133. /**
  134. * Checks an app before install whether it uses private APIs instead of the
  135. * proper public APIs. If this is set to true it will only allow to install or
  136. * enable apps that pass this check.
  137. *
  138. * Defaults to ``false``
  139. */
  140. 'appcodechecker' => true,
  141. /**
  142. * Check if Nextcloud is up-to-date and shows a notification if a new version is
  143. * available.
  144. *
  145. * Defaults to ``true``
  146. */
  147. 'updatechecker' => true,
  148. /**
  149. * Logging
  150. */
  151. /**
  152. * By default the Nextcloud logs are sent to the ``nextcloud.log`` file in the
  153. * default Nextcloud data directory.
  154. * If syslogging is desired, set this parameter to ``syslog``.
  155. * Setting this parameter to ``errorlog`` will use the PHP error_log function
  156. * for logging.
  157. *
  158. * Defaults to ``file``
  159. */
  160. 'log_type' => 'file',
  161. /**
  162. * Log file path for the Nextcloud logging type.
  163. *
  164. * Defaults to ``[datadirectory]/nextcloud.log``
  165. */
  166. 'logfile' => '/var/log/nextcloud/nextcloud.log',
  167. /**
  168. * Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 =
  169. * Warning, 3 = Error, and 4 = Fatal. The default value is Warning.
  170. *
  171. * Defaults to ``2``
  172. */
  173. 'loglevel' => 2,
  174. /**
  175. * The timezone for logfiles. You may change this; see
  176. * http://php.net/manual/en/timezones.php
  177. *
  178. * Defaults to ``UTC``
  179. */
  180. 'logtimezone' => 'UTC',
  181. /**
  182. * Apps
  183. *
  184. * Options for the Apps folder, Apps store, and App code checker.
  185. */
  186. /**
  187. * When enabled, admins may install apps from the Nextcloud app store.
  188. *
  189. * Defaults to ``true``
  190. */
  191. 'appstoreenabled' => false,
  192. /**
  193. * Use the ``apps_paths`` parameter to set the location of the Apps directory,
  194. * which should be scanned for available apps, and where user-specific apps
  195. * should be installed from the Apps store. The ``path`` defines the absolute
  196. * file system path to the app folder. The key ``url`` defines the HTTP Web path
  197. * to that folder, starting from the Nextcloud webroot. The key ``writable``
  198. * indicates if a Web server can write files to that folder.
  199. */
  200. 'apps_paths' => array(
  201. array(
  202. 'path'=> '/var/www/nextcloud/apps',
  203. 'url' => '/apps',
  204. 'writable' => false,
  205. ),
  206. ),
  207. /**
  208. * Disable the web based updater
  209. */
  210. 'upgrade.disable-web' => true,
  211. /**
  212. * Enable memcache
  213. */
  214. 'memcache.local' => '\OC\Memcache\APCu',
  215. 'memcache.distributed' => '\OC\Memcache\Memcached',
  216. 'memcached_servers' => array(
  217. array('localhost', 11211),
  218. ),
  219. );