|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?php
-
- /**
- * This configuration file is only provided to document the different
- * configuration options and their usage.
- *
- * DO NOT COMPLETELY BASE YOUR CONFIGURATION FILE ON THIS SAMPLE. THIS MAY BREAK
- * YOUR INSTANCE. Instead, manually copy configuration switches that you
- * consider important for your instance to your working ``config.php``, and
- * apply configuration options that are pertinent for your instance.
- *
- * This file is used to generate the configuration documentation.
- * Please consider following requirements of the current parser:
- * * all comments need to start with `/**` and end with ` *\/` - each on their
- * own line
- * * add a `@see CONFIG_INDEX` to copy a previously described config option
- * also to this line
- * * everything between the ` *\/` and the next `/**` will be treated as the
- * config option
- * * use RST syntax
- */
-
- $CONFIG = array(
-
- /**
- * Where user files are stored. The SQLite database is also stored here, when
- * you use SQLite.
- *
- * Default to ``data/`` in the Nextcloud directory.
- */
- 'datadirectory' => '{{nextcloud_data_directory}}',
-
- /**
- * Indicates whether the Nextcloud instance was installed successfully; ``true``
- * indicates a successful installation, and ``false`` indicates an unsuccessful
- * installation.
- *
- * Defaults to ``false``
- */
- 'installed' => false,
-
- /**
- * During setup, if requirements are met (see below), this setting is set to true
- * and MySQL can handle 4 byte characters instead of 3 byte characters.
- *
- * If you want to convert an existing 3-byte setup into a 4-byte setup please
- * set the parameters in MySQL as mentioned below and run the migration command:
- * ./occ db:convert-mysql-charset
- * The config setting will be set automatically after a successful run.
- *
- * Consult the documentation for more details.
- *
- * MySQL requires a special setup for longer indexes (> 767 bytes) which are
- * needed:
- *
- * [mysqld]
- * innodb_large_prefix=ON
- * innodb_file_format=Barracuda
- * innodb_file_per_table=ON
- *
- * Tables will be created with
- * * character set: utf8mb4
- * * collation: utf8mb4_bin
- * * row_format: compressed
- *
- * See:
- * https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html
- * https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_large_prefix
- * https://mariadb.com/kb/en/mariadb/xtradbinnodb-server-system-variables/#innodb_large_prefix
- * http://www.tocker.ca/2013/10/31/benchmarking-innodb-page-compression-performance.html
- * http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/
- */
- 'mysql.utf8mb4' => true,
-
- /**
- * User Experience
- *
- * These optional parameters control some aspects of the user interface. Default
- * values, where present, are shown.
- */
-
- /**
- * This sets the default language on your Nextcloud server, using ISO_639-1
- * language codes such as ``en`` for English, ``de`` for German, and ``fr`` for
- * French. It overrides automatic language detection on public pages like login
- * or shared items. User's language preferences configured under "personal ->
- * language" override this setting after they have logged in.
- *
- * Defaults to ``en``
- */
- 'default_language' => '{{nextcloud_default_language}}',
-
- /**
- * With this setting a language can be forced for all users. If a language is
- * forced, the users are also unable to change their language in the personal
- * settings. If users shall be unable to change their language, but users have
- * different languages, this value can be set to ``true`` instead of a language
- * code.
- *
- * Defaults to ``false``
- */
- {% if nextcloud_force_language %}
- 'force_language' => '{{nextcloud_force_language}}',
- {% endif %}
-
- /**
- * Set the default app to open on login. Use the app names as they appear in the
- * URL after clicking them in the Apps menu, such as documents, calendar, and
- * gallery. You can use a comma-separated list of app names, so if the first
- * app is not enabled for a user then Nextcloud will try the second one, and so
- * on. If no enabled apps are found it defaults to the Files app.
- *
- * Defaults to ``files``
- */
- 'defaultapp' => '{{nextcloud_defaultapp}}',
-
- /**
- * To have clean URLs without `/index.php` this parameter needs to be configured.
- *
- * This parameter will be written as "RewriteBase" on update and installation of
- * Nextcloud to your `.htaccess` file. While this value is often simply the URL
- * path of the Nextcloud installation it cannot be set automatically properly in
- * every scenario and needs thus some manual configuration.
- *
- * In a standard Apache setup this usually equals the folder that Nextcloud is
- * accessible at. So if Nextcloud is accessible via "https://mycloud.org/nextcloud"
- * the correct value would most likely be "/nextcloud". If Nextcloud is running
- * under "https://mycloud.org/" then it would be "/".
- *
- * Note that the above rule is not valid in every case, as there are some rare setup
- * cases where this may not apply. However, to avoid any update problems this
- * configuration value is explicitly opt-in.
- *
- * After setting this value run `occ maintenance:update:htaccess`. Now, when the
- * following conditions are met Nextcloud URLs won't contain `index.php`:
- *
- * - `mod_rewrite` is installed
- * - `mod_env` is installed
- *
- * Defaults to ``''`` (empty string)
- */
- 'htaccess.RewriteBase' => '/',
-
- /**
- * Checks an app before install whether it uses private APIs instead of the
- * proper public APIs. If this is set to true it will only allow to install or
- * enable apps that pass this check.
- *
- * Defaults to ``false``
- */
- 'appcodechecker' => true,
-
- /**
- * Check if Nextcloud is up-to-date and shows a notification if a new version is
- * available.
- *
- * Defaults to ``true``
- */
- 'updatechecker' => true,
-
-
- /**
- * Logging
- */
-
- /**
- * By default the Nextcloud logs are sent to the ``nextcloud.log`` file in the
- * default Nextcloud data directory.
- * If syslogging is desired, set this parameter to ``syslog``.
- * Setting this parameter to ``errorlog`` will use the PHP error_log function
- * for logging.
- *
- * Defaults to ``file``
- */
- 'log_type' => 'file',
-
- /**
- * Log file path for the Nextcloud logging type.
- *
- * Defaults to ``[datadirectory]/nextcloud.log``
- */
- 'logfile' => '/var/log/nextcloud/nextcloud.log',
-
- /**
- * Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 =
- * Warning, 3 = Error, and 4 = Fatal. The default value is Warning.
- *
- * Defaults to ``2``
- */
- 'loglevel' => 2,
-
-
- /**
- * The timezone for logfiles. You may change this; see
- * http://php.net/manual/en/timezones.php
- *
- * Defaults to ``UTC``
- */
- 'logtimezone' => 'UTC',
-
-
- /**
- * Apps
- *
- * Options for the Apps folder, Apps store, and App code checker.
- */
-
- /**
- * When enabled, admins may install apps from the Nextcloud app store.
- *
- * Defaults to ``true``
- */
- 'appstoreenabled' => false,
-
- /**
- * Use the ``apps_paths`` parameter to set the location of the Apps directory,
- * which should be scanned for available apps, and where user-specific apps
- * should be installed from the Apps store. The ``path`` defines the absolute
- * file system path to the app folder. The key ``url`` defines the HTTP Web path
- * to that folder, starting from the Nextcloud webroot. The key ``writable``
- * indicates if a Web server can write files to that folder.
- */
- 'apps_paths' => array(
- array(
- 'path'=> '/var/www/nextcloud/apps',
- 'url' => '/apps',
- 'writable' => false,
- ),
- ),
-
-
- /**
- * Disable the web based updater
- */
- 'upgrade.disable-web' => true,
-
-
- /**
- * Enable memcache
- */
- 'memcache.local' => '\OC\Memcache\APCu',
- 'memcache.distributed' => '\OC\Memcache\Memcached',
- 'memcached_servers' => array(
- array('localhost', 11211),
- ),
-
-
- );
|