|
@@ -1,6 +1,6 @@
|
|
<?php
|
|
<?php
|
|
|
|
|
|
-// @codingStandardsIgnoreFile
|
|
|
|
|
|
+// phpcs:ignoreFile
|
|
|
|
|
|
/**
|
|
/**
|
|
* @file
|
|
* @file
|
|
@@ -138,50 +138,17 @@ $databases = [];
|
|
* request as needed. The fourth line creates a new database with a name of
|
|
* request as needed. The fourth line creates a new database with a name of
|
|
* "extra".
|
|
* "extra".
|
|
*
|
|
*
|
|
- * You can optionally set prefixes for some or all database table names
|
|
|
|
- * by using the 'prefix' setting. If a prefix is specified, the table
|
|
|
|
- * name will be prepended with its value. Be sure to use valid database
|
|
|
|
- * characters only, usually alphanumeric and underscore. If no prefixes
|
|
|
|
- * are desired, leave it as an empty string ''.
|
|
|
|
|
|
+ * You can optionally set a prefix for all database table names by using the
|
|
|
|
+ * 'prefix' setting. If a prefix is specified, the table name will be prepended
|
|
|
|
+ * with its value. Be sure to use valid database characters only, usually
|
|
|
|
+ * alphanumeric and underscore. If no prefix is desired, do not set the 'prefix'
|
|
|
|
+ * key or set its value to an empty string ''.
|
|
*
|
|
*
|
|
- * To have all database names prefixed, set 'prefix' as a string:
|
|
|
|
|
|
+ * For example, to have all database table prefixed with 'main_', set:
|
|
* @code
|
|
* @code
|
|
* 'prefix' => 'main_',
|
|
* 'prefix' => 'main_',
|
|
* @endcode
|
|
* @endcode
|
|
*
|
|
*
|
|
- * Per-table prefixes are deprecated as of Drupal 8.2, and will be removed in
|
|
|
|
- * Drupal 9.0. After that, only a single prefix for all tables will be
|
|
|
|
- * supported.
|
|
|
|
- *
|
|
|
|
- * To provide prefixes for specific tables, set 'prefix' as an array.
|
|
|
|
- * The array's keys are the table names and the values are the prefixes.
|
|
|
|
- * The 'default' element is mandatory and holds the prefix for any tables
|
|
|
|
- * not specified elsewhere in the array. Example:
|
|
|
|
- * @code
|
|
|
|
- * 'prefix' => [
|
|
|
|
- * 'default' => 'main_',
|
|
|
|
- * 'users' => 'shared_',
|
|
|
|
- * 'sessions' => 'shared_',
|
|
|
|
- * 'role' => 'shared_',
|
|
|
|
- * 'authmap' => 'shared_',
|
|
|
|
- * ],
|
|
|
|
- * @endcode
|
|
|
|
- * You can also use a reference to a schema/database as a prefix. This may be
|
|
|
|
- * useful if your Drupal installation exists in a schema that is not the default
|
|
|
|
- * or you want to access several databases from the same code base at the same
|
|
|
|
- * time.
|
|
|
|
- * Example:
|
|
|
|
- * @code
|
|
|
|
- * 'prefix' => [
|
|
|
|
- * 'default' => 'main.',
|
|
|
|
- * 'users' => 'shared.',
|
|
|
|
- * 'sessions' => 'shared.',
|
|
|
|
- * 'role' => 'shared.',
|
|
|
|
- * 'authmap' => 'shared.',
|
|
|
|
- * ];
|
|
|
|
- * @endcode
|
|
|
|
- * NOTE: MySQL and SQLite's definition of a schema is a database.
|
|
|
|
- *
|
|
|
|
* Advanced users can add or override initial commands to execute when
|
|
* Advanced users can add or override initial commands to execute when
|
|
* connecting to the database server, as well as PDO connection settings. For
|
|
* connecting to the database server, as well as PDO connection settings. For
|
|
* example, to enable MySQL SELECT queries to exceed the max_join_size system
|
|
* example, to enable MySQL SELECT queries to exceed the max_join_size system
|
|
@@ -308,16 +275,18 @@ $settings['hash_salt'] = '';
|
|
$settings['update_free_access'] = FALSE;
|
|
$settings['update_free_access'] = FALSE;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Fallback to HTTP for Update Manager.
|
|
|
|
|
|
+ * Fallback to HTTP for Update Manager and for fetching security advisories.
|
|
*
|
|
*
|
|
- * If your Drupal site fails to connect to updates.drupal.org using HTTPS to
|
|
|
|
- * fetch Drupal core, module and theme update status, you may uncomment this
|
|
|
|
- * setting and set it to TRUE to allow an insecure fallback to HTTP. Note that
|
|
|
|
- * doing so will open your site up to a potential man-in-the-middle attack. You
|
|
|
|
- * should instead attempt to resolve the issues before enabling this option.
|
|
|
|
|
|
+ * If your site fails to connect to updates.drupal.org over HTTPS (either when
|
|
|
|
+ * fetching data on available updates, or when fetching the feed of critical
|
|
|
|
+ * security announcements), you may uncomment this setting and set it to TRUE to
|
|
|
|
+ * allow an insecure fallback to HTTP. Note that doing so will open your site up
|
|
|
|
+ * to a potential man-in-the-middle attack. You should instead attempt to
|
|
|
|
+ * resolve the issues before enabling this option.
|
|
* @see https://www.drupal.org/docs/system-requirements/php-requirements#openssl
|
|
* @see https://www.drupal.org/docs/system-requirements/php-requirements#openssl
|
|
* @see https://en.wikipedia.org/wiki/Man-in-the-middle_attack
|
|
* @see https://en.wikipedia.org/wiki/Man-in-the-middle_attack
|
|
* @see \Drupal\update\UpdateFetcher
|
|
* @see \Drupal\update\UpdateFetcher
|
|
|
|
+ * @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher
|
|
*/
|
|
*/
|
|
# $settings['update_fetch_with_http_fallback'] = TRUE;
|
|
# $settings['update_fetch_with_http_fallback'] = TRUE;
|
|
|
|
|
|
@@ -385,17 +354,20 @@ $settings['update_free_access'] = FALSE;
|
|
* Sets which headers to trust from your reverse proxy.
|
|
* Sets which headers to trust from your reverse proxy.
|
|
*
|
|
*
|
|
* Common values are:
|
|
* Common values are:
|
|
- * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL
|
|
|
|
|
|
+ * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR
|
|
|
|
+ * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST
|
|
|
|
+ * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT
|
|
|
|
+ * - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
|
|
* - \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
|
* - \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
|
*
|
|
*
|
|
* Note the default value of
|
|
* Note the default value of
|
|
* @code
|
|
* @code
|
|
- * \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
|
|
|
|
|
+ * \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
|
* @endcode
|
|
* @endcode
|
|
* is not secure by default. The value should be set to only the specific
|
|
* is not secure by default. The value should be set to only the specific
|
|
* headers the reverse proxy uses. For example:
|
|
* headers the reverse proxy uses. For example:
|
|
* @code
|
|
* @code
|
|
- * \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL
|
|
|
|
|
|
+ * \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
|
|
* @endcode
|
|
* @endcode
|
|
* This would trust the following headers:
|
|
* This would trust the following headers:
|
|
* - X_FORWARDED_FOR
|
|
* - X_FORWARDED_FOR
|
|
@@ -403,11 +375,14 @@ $settings['update_free_access'] = FALSE;
|
|
* - X_FORWARDED_PROTO
|
|
* - X_FORWARDED_PROTO
|
|
* - X_FORWARDED_PORT
|
|
* - X_FORWARDED_PORT
|
|
*
|
|
*
|
|
- * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL
|
|
|
|
|
|
+ * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR
|
|
|
|
+ * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST
|
|
|
|
+ * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT
|
|
|
|
+ * @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
|
|
* @see \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
|
* @see \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
|
* @see \Symfony\Component\HttpFoundation\Request::setTrustedProxies
|
|
* @see \Symfony\Component\HttpFoundation\Request::setTrustedProxies
|
|
*/
|
|
*/
|
|
-# $settings['reverse_proxy_trusted_headers'] = \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED;
|
|
|
|
|
|
+# $settings['reverse_proxy_trusted_headers'] = \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -603,6 +578,21 @@ $settings['update_free_access'] = FALSE;
|
|
# ini_set('pcre.backtrack_limit', 200000);
|
|
# ini_set('pcre.backtrack_limit', 200000);
|
|
# ini_set('pcre.recursion_limit', 200000);
|
|
# ini_set('pcre.recursion_limit', 200000);
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * Add Permissions-Policy header to disable Google FLoC.
|
|
|
|
+ *
|
|
|
|
+ * By default, Drupal sends the 'Permissions-Policy: interest-cohort=()' header
|
|
|
|
+ * to disable Google's Federated Learning of Cohorts feature, introduced in
|
|
|
|
+ * Chrome 89.
|
|
|
|
+ *
|
|
|
|
+ * See https://en.wikipedia.org/wiki/Federated_Learning_of_Cohorts for more
|
|
|
|
+ * information about FLoC.
|
|
|
|
+ *
|
|
|
|
+ * If you don't wish to disable FLoC in Chrome, you can set this value
|
|
|
|
+ * to FALSE.
|
|
|
|
+ */
|
|
|
|
+# $settings['block_interest_cohort'] = TRUE;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Configuration overrides.
|
|
* Configuration overrides.
|
|
*
|
|
*
|