Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../var/softacul.../drupal8
File: settings.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// phpcs:ignoreFile
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* @file
[5] Fix | Delete
* Drupal site-specific configuration file.
[6] Fix | Delete
*
[7] Fix | Delete
* IMPORTANT NOTE:
[8] Fix | Delete
* This file may have been set to read-only by the Drupal installation program.
[9] Fix | Delete
* If you make changes to this file, be sure to protect it again after making
[10] Fix | Delete
* your modifications. Failure to remove write permissions to this file is a
[11] Fix | Delete
* security risk.
[12] Fix | Delete
*
[13] Fix | Delete
* In order to use the selection rules below the multisite aliasing file named
[14] Fix | Delete
* sites/sites.php must be present. Its optional settings will be loaded, and
[15] Fix | Delete
* the aliases in the array $sites will override the default directory rules
[16] Fix | Delete
* below. See sites/example.sites.php for more information about aliases.
[17] Fix | Delete
*
[18] Fix | Delete
* The configuration directory will be discovered by stripping the website's
[19] Fix | Delete
* hostname from left to right and pathname from right to left. The first
[20] Fix | Delete
* configuration file found will be used and any others will be ignored. If no
[21] Fix | Delete
* other configuration file is found then the default configuration file at
[22] Fix | Delete
* 'sites/default' will be used.
[23] Fix | Delete
*
[24] Fix | Delete
* For example, for a fictitious site installed at
[25] Fix | Delete
* https://www.drupal.org:8080/my-site/test/, the 'settings.php' file is searched
[26] Fix | Delete
* for in the following directories:
[27] Fix | Delete
*
[28] Fix | Delete
* - sites/8080.www.drupal.org.my-site.test
[29] Fix | Delete
* - sites/www.drupal.org.my-site.test
[30] Fix | Delete
* - sites/drupal.org.my-site.test
[31] Fix | Delete
* - sites/org.my-site.test
[32] Fix | Delete
*
[33] Fix | Delete
* - sites/8080.www.drupal.org.my-site
[34] Fix | Delete
* - sites/www.drupal.org.my-site
[35] Fix | Delete
* - sites/drupal.org.my-site
[36] Fix | Delete
* - sites/org.my-site
[37] Fix | Delete
*
[38] Fix | Delete
* - sites/8080.www.drupal.org
[39] Fix | Delete
* - sites/www.drupal.org
[40] Fix | Delete
* - sites/drupal.org
[41] Fix | Delete
* - sites/org
[42] Fix | Delete
*
[43] Fix | Delete
* - sites/default
[44] Fix | Delete
*
[45] Fix | Delete
* Note that if you are installing on a non-standard port number, prefix the
[46] Fix | Delete
* hostname with that number. For example,
[47] Fix | Delete
* https://www.drupal.org:8080/my-site/test/ could be loaded from
[48] Fix | Delete
* sites/8080.www.drupal.org.my-site.test/.
[49] Fix | Delete
*
[50] Fix | Delete
* @see example.sites.php
[51] Fix | Delete
* @see \Drupal\Core\DrupalKernel::getSitePath()
[52] Fix | Delete
*
[53] Fix | Delete
* In addition to customizing application settings through variables in
[54] Fix | Delete
* settings.php, you can create a services.yml file in the same directory to
[55] Fix | Delete
* register custom, site-specific service definitions and/or swap out default
[56] Fix | Delete
* implementations with custom ones.
[57] Fix | Delete
*/
[58] Fix | Delete
[59] Fix | Delete
/**
[60] Fix | Delete
* Database settings:
[61] Fix | Delete
*
[62] Fix | Delete
* The $databases array specifies the database connection or
[63] Fix | Delete
* connections that Drupal may use. Drupal is able to connect
[64] Fix | Delete
* to multiple databases, including multiple types of databases,
[65] Fix | Delete
* during the same request.
[66] Fix | Delete
*
[67] Fix | Delete
* One example of the simplest connection array is shown below. To use the
[68] Fix | Delete
* sample settings, copy and uncomment the code below between the @code and
[69] Fix | Delete
* @endcode lines and paste it after the $databases declaration. You will need
[70] Fix | Delete
* to replace the database username and password and possibly the host and port
[71] Fix | Delete
* with the appropriate credentials for your database system.
[72] Fix | Delete
*
[73] Fix | Delete
* The next section describes how to customize the $databases array for more
[74] Fix | Delete
* specific needs.
[75] Fix | Delete
*
[76] Fix | Delete
* @code
[77] Fix | Delete
* $databases['default']['default'] = [
[78] Fix | Delete
* 'database' => 'database_name',
[79] Fix | Delete
* 'username' => 'sql_username',
[80] Fix | Delete
* 'password' => 'sql_password',
[81] Fix | Delete
* 'host' => 'localhost',
[82] Fix | Delete
* 'port' => '3306',
[83] Fix | Delete
* 'driver' => 'mysql',
[84] Fix | Delete
* 'prefix' => '',
[85] Fix | Delete
* 'collation' => 'utf8mb4_general_ci',
[86] Fix | Delete
* ];
[87] Fix | Delete
* @endcode
[88] Fix | Delete
*/
[89] Fix | Delete
$databases = [];
[90] Fix | Delete
[91] Fix | Delete
/**
[92] Fix | Delete
* Customizing database settings.
[93] Fix | Delete
*
[94] Fix | Delete
* Many of the values of the $databases array can be customized for your
[95] Fix | Delete
* particular database system. Refer to the sample in the section above as a
[96] Fix | Delete
* starting point.
[97] Fix | Delete
*
[98] Fix | Delete
* The "driver" property indicates what Drupal database driver the
[99] Fix | Delete
* connection should use. This is usually the same as the name of the
[100] Fix | Delete
* database type, such as mysql or sqlite, but not always. The other
[101] Fix | Delete
* properties will vary depending on the driver. For SQLite, you must
[102] Fix | Delete
* specify a database file name in a directory that is writable by the
[103] Fix | Delete
* webserver. For most other drivers, you must specify a
[104] Fix | Delete
* username, password, host, and database name.
[105] Fix | Delete
*
[106] Fix | Delete
* Drupal core implements drivers for mysql, pgsql, and sqlite. Other drivers
[107] Fix | Delete
* can be provided by contributed or custom modules. To use a contributed or
[108] Fix | Delete
* custom driver, the "namespace" property must be set to the namespace of the
[109] Fix | Delete
* driver. The code in this namespace must be autoloadable prior to connecting
[110] Fix | Delete
* to the database, and therefore, prior to when module root namespaces are
[111] Fix | Delete
* added to the autoloader. To add the driver's namespace to the autoloader,
[112] Fix | Delete
* set the "autoload" property to the PSR-4 base directory of the driver's
[113] Fix | Delete
* namespace. This is optional for projects managed with Composer if the
[114] Fix | Delete
* driver's namespace is in Composer's autoloader.
[115] Fix | Delete
*
[116] Fix | Delete
* For each database, you may optionally specify multiple "target" databases.
[117] Fix | Delete
* A target database allows Drupal to try to send certain queries to a
[118] Fix | Delete
* different database if it can but fall back to the default connection if not.
[119] Fix | Delete
* That is useful for primary/replica replication, as Drupal may try to connect
[120] Fix | Delete
* to a replica server when appropriate and if one is not available will simply
[121] Fix | Delete
* fall back to the single primary server (The terms primary/replica are
[122] Fix | Delete
* traditionally referred to as master/slave in database server documentation).
[123] Fix | Delete
*
[124] Fix | Delete
* The general format for the $databases array is as follows:
[125] Fix | Delete
* @code
[126] Fix | Delete
* $databases['default']['default'] = $info_array;
[127] Fix | Delete
* $databases['default']['replica'][] = $info_array;
[128] Fix | Delete
* $databases['default']['replica'][] = $info_array;
[129] Fix | Delete
* $databases['extra']['default'] = $info_array;
[130] Fix | Delete
* @endcode
[131] Fix | Delete
*
[132] Fix | Delete
* In the above example, $info_array is an array of settings described above.
[133] Fix | Delete
* The first line sets a "default" database that has one primary database
[134] Fix | Delete
* (the second level default). The second and third lines create an array
[135] Fix | Delete
* of potential replica databases. Drupal will select one at random for a given
[136] Fix | Delete
* request as needed. The fourth line creates a new database with a name of
[137] Fix | Delete
* "extra".
[138] Fix | Delete
*
[139] Fix | Delete
* For MySQL, MariaDB or equivalent databases the 'isolation_level' option can
[140] Fix | Delete
* be set. The recommended transaction isolation level for Drupal sites is
[141] Fix | Delete
* 'READ COMMITTED'. The 'REPEATABLE READ' option is supported but can result
[142] Fix | Delete
* in deadlocks, the other two options are 'READ UNCOMMITTED' and 'SERIALIZABLE'.
[143] Fix | Delete
* They are available but not supported; use them at your own risk. For more
[144] Fix | Delete
* info:
[145] Fix | Delete
* https://dev.mysql.com/doc/refman/8.0/en/innodb-transaction-isolation-levels.html
[146] Fix | Delete
*
[147] Fix | Delete
* On your settings.php, change the isolation level:
[148] Fix | Delete
* @code
[149] Fix | Delete
* $databases['default']['default']['init_commands'] = [
[150] Fix | Delete
* 'isolation_level' => 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
[151] Fix | Delete
* ];
[152] Fix | Delete
* @endcode
[153] Fix | Delete
*
[154] Fix | Delete
* You can optionally set a prefix for all database table names by using the
[155] Fix | Delete
* 'prefix' setting. If a prefix is specified, the table name will be prepended
[156] Fix | Delete
* with its value. Be sure to use valid database characters only, usually
[157] Fix | Delete
* alphanumeric and underscore. If no prefix is desired, do not set the 'prefix'
[158] Fix | Delete
* key or set its value to an empty string ''.
[159] Fix | Delete
*
[160] Fix | Delete
* For example, to have all database table prefixed with 'main_', set:
[161] Fix | Delete
* @code
[162] Fix | Delete
* 'prefix' => 'main_',
[163] Fix | Delete
* @endcode
[164] Fix | Delete
*
[165] Fix | Delete
* Advanced users can add or override initial commands to execute when
[166] Fix | Delete
* connecting to the database server, as well as PDO connection settings. For
[167] Fix | Delete
* example, to enable MySQL SELECT queries to exceed the max_join_size system
[168] Fix | Delete
* variable, and to reduce the database connection timeout to 5 seconds:
[169] Fix | Delete
* @code
[170] Fix | Delete
* $databases['default']['default'] = [
[171] Fix | Delete
* 'init_commands' => [
[172] Fix | Delete
* 'big_selects' => 'SET SQL_BIG_SELECTS=1',
[173] Fix | Delete
* ],
[174] Fix | Delete
* 'pdo' => [
[175] Fix | Delete
* PDO::ATTR_TIMEOUT => 5,
[176] Fix | Delete
* ],
[177] Fix | Delete
* ];
[178] Fix | Delete
* @endcode
[179] Fix | Delete
*
[180] Fix | Delete
* WARNING: The above defaults are designed for database portability. Changing
[181] Fix | Delete
* them may cause unexpected behavior, including potential data loss. See
[182] Fix | Delete
* https://www.drupal.org/docs/8/api/database-api/database-configuration for
[183] Fix | Delete
* more information on these defaults and the potential issues.
[184] Fix | Delete
*
[185] Fix | Delete
* More details can be found in the constructor methods for each driver:
[186] Fix | Delete
* - \Drupal\mysql\Driver\Database\mysql\Connection::__construct()
[187] Fix | Delete
* - \Drupal\pgsql\Driver\Database\pgsql\Connection::__construct()
[188] Fix | Delete
* - \Drupal\sqlite\Driver\Database\sqlite\Connection::__construct()
[189] Fix | Delete
*
[190] Fix | Delete
* Sample Database configuration format for PostgreSQL (pgsql):
[191] Fix | Delete
* @code
[192] Fix | Delete
* $databases['default']['default'] = [
[193] Fix | Delete
* 'driver' => 'pgsql',
[194] Fix | Delete
* 'database' => 'database_name',
[195] Fix | Delete
* 'username' => 'sql_username',
[196] Fix | Delete
* 'password' => 'sql_password',
[197] Fix | Delete
* 'host' => 'localhost',
[198] Fix | Delete
* 'prefix' => '',
[199] Fix | Delete
* ];
[200] Fix | Delete
* @endcode
[201] Fix | Delete
*
[202] Fix | Delete
* Sample Database configuration format for SQLite (sqlite):
[203] Fix | Delete
* @code
[204] Fix | Delete
* $databases['default']['default'] = [
[205] Fix | Delete
* 'driver' => 'sqlite',
[206] Fix | Delete
* 'database' => '/path/to/database_filename',
[207] Fix | Delete
* ];
[208] Fix | Delete
* @endcode
[209] Fix | Delete
*
[210] Fix | Delete
* Sample Database configuration format for a driver in a contributed module:
[211] Fix | Delete
* @code
[212] Fix | Delete
* $databases['default']['default'] = [
[213] Fix | Delete
* 'driver' => 'my_driver',
[214] Fix | Delete
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
[215] Fix | Delete
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
[216] Fix | Delete
* 'database' => 'database_name',
[217] Fix | Delete
* 'username' => 'sql_username',
[218] Fix | Delete
* 'password' => 'sql_password',
[219] Fix | Delete
* 'host' => 'localhost',
[220] Fix | Delete
* 'prefix' => '',
[221] Fix | Delete
* ];
[222] Fix | Delete
* @endcode
[223] Fix | Delete
*
[224] Fix | Delete
* Sample Database configuration format for a driver that is extending another
[225] Fix | Delete
* database driver.
[226] Fix | Delete
* @code
[227] Fix | Delete
* $databases['default']['default'] = [
[228] Fix | Delete
* 'driver' => 'my_driver',
[229] Fix | Delete
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
[230] Fix | Delete
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
[231] Fix | Delete
* 'database' => 'database_name',
[232] Fix | Delete
* 'username' => 'sql_username',
[233] Fix | Delete
* 'password' => 'sql_password',
[234] Fix | Delete
* 'host' => 'localhost',
[235] Fix | Delete
* 'prefix' => '',
[236] Fix | Delete
* 'dependencies' => [
[237] Fix | Delete
* 'parent_module' => [
[238] Fix | Delete
* 'namespace' => 'Drupal\parent_module',
[239] Fix | Delete
* 'autoload' => 'core/modules/parent_module/src/',
[240] Fix | Delete
* ],
[241] Fix | Delete
* ],
[242] Fix | Delete
* ];
[243] Fix | Delete
* @endcode
[244] Fix | Delete
*/
[245] Fix | Delete
[246] Fix | Delete
/**
[247] Fix | Delete
* Location of the site configuration files.
[248] Fix | Delete
*
[249] Fix | Delete
* The $settings['config_sync_directory'] specifies the location of file system
[250] Fix | Delete
* directory used for syncing configuration data. On install, the directory is
[251] Fix | Delete
* created. This is used for configuration imports.
[252] Fix | Delete
*
[253] Fix | Delete
* The default location for this directory is inside a randomly-named
[254] Fix | Delete
* directory in the public files path. The setting below allows you to set
[255] Fix | Delete
* its location.
[256] Fix | Delete
*/
[257] Fix | Delete
# $settings['config_sync_directory'] = '/directory/outside/webroot';
[258] Fix | Delete
[259] Fix | Delete
/**
[260] Fix | Delete
* Settings:
[261] Fix | Delete
*
[262] Fix | Delete
* $settings contains environment-specific configuration, such as the files
[263] Fix | Delete
* directory and reverse proxy address, and temporary configuration, such as
[264] Fix | Delete
* security overrides.
[265] Fix | Delete
*
[266] Fix | Delete
* @see \Drupal\Core\Site\Settings::get()
[267] Fix | Delete
*/
[268] Fix | Delete
[269] Fix | Delete
/**
[270] Fix | Delete
* Salt for one-time login links, cancel links, form tokens, etc.
[271] Fix | Delete
*
[272] Fix | Delete
* This variable will be set to a random value by the installer. All one-time
[273] Fix | Delete
* login links will be invalidated if the value is changed. Note that if your
[274] Fix | Delete
* site is deployed on a cluster of web servers, you must ensure that this
[275] Fix | Delete
* variable has the same value on each server.
[276] Fix | Delete
*
[277] Fix | Delete
* For enhanced security, you may set this variable to the contents of a file
[278] Fix | Delete
* outside your document root, and vary the value across environments (like
[279] Fix | Delete
* production and development); you should also ensure that this file is not
[280] Fix | Delete
* stored with backups of your database.
[281] Fix | Delete
*
[282] Fix | Delete
* Example:
[283] Fix | Delete
* @code
[284] Fix | Delete
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
[285] Fix | Delete
* @endcode
[286] Fix | Delete
*/
[287] Fix | Delete
$settings['hash_salt'] = '[[hash_salt]]';
[288] Fix | Delete
[289] Fix | Delete
/**
[290] Fix | Delete
* Deployment identifier.
[291] Fix | Delete
*
[292] Fix | Delete
* Drupal's dependency injection container will be automatically invalidated and
[293] Fix | Delete
* rebuilt when the Drupal core version changes. When updating contributed or
[294] Fix | Delete
* custom code that changes the container, changing this identifier will also
[295] Fix | Delete
* allow the container to be invalidated as soon as code is deployed.
[296] Fix | Delete
*/
[297] Fix | Delete
# $settings['deployment_identifier'] = \Drupal::VERSION;
[298] Fix | Delete
[299] Fix | Delete
/**
[300] Fix | Delete
* Access control for update.php script.
[301] Fix | Delete
*
[302] Fix | Delete
* If you are updating your Drupal installation using the update.php script but
[303] Fix | Delete
* are not logged in using either an account with the "Administer software
[304] Fix | Delete
* updates" permission or the site maintenance account (the account that was
[305] Fix | Delete
* created during installation), you will need to modify the access check
[306] Fix | Delete
* statement below. Change the FALSE to a TRUE to disable the access check.
[307] Fix | Delete
* After finishing the upgrade, be sure to open this file again and change the
[308] Fix | Delete
* TRUE back to a FALSE!
[309] Fix | Delete
*/
[310] Fix | Delete
$settings['update_free_access'] = FALSE;
[311] Fix | Delete
[312] Fix | Delete
/**
[313] Fix | Delete
* Fallback to HTTP for Update Manager and for fetching security advisories.
[314] Fix | Delete
*
[315] Fix | Delete
* If your site fails to connect to updates.drupal.org over HTTPS (either when
[316] Fix | Delete
* fetching data on available updates, or when fetching the feed of critical
[317] Fix | Delete
* security announcements), you may uncomment this setting and set it to TRUE to
[318] Fix | Delete
* allow an insecure fallback to HTTP. Note that doing so will open your site up
[319] Fix | Delete
* to a potential man-in-the-middle attack. You should instead attempt to
[320] Fix | Delete
* resolve the issues before enabling this option.
[321] Fix | Delete
* @see https://www.drupal.org/docs/system-requirements/php-requirements#openssl
[322] Fix | Delete
* @see https://en.wikipedia.org/wiki/Man-in-the-middle_attack
[323] Fix | Delete
* @see \Drupal\update\UpdateFetcher
[324] Fix | Delete
* @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher
[325] Fix | Delete
*/
[326] Fix | Delete
# $settings['update_fetch_with_http_fallback'] = TRUE;
[327] Fix | Delete
[328] Fix | Delete
/**
[329] Fix | Delete
* External access proxy settings:
[330] Fix | Delete
*
[331] Fix | Delete
* If your site must access the Internet via a web proxy then you can enter the
[332] Fix | Delete
* proxy settings here. Set the full URL of the proxy, including the port, in
[333] Fix | Delete
* variables:
[334] Fix | Delete
* - $settings['http_client_config']['proxy']['http']: The proxy URL for HTTP
[335] Fix | Delete
* requests.
[336] Fix | Delete
* - $settings['http_client_config']['proxy']['https']: The proxy URL for HTTPS
[337] Fix | Delete
* requests.
[338] Fix | Delete
* You can pass in the user name and password for basic authentication in the
[339] Fix | Delete
* URLs in these settings.
[340] Fix | Delete
*
[341] Fix | Delete
* You can also define an array of host names that can be accessed directly,
[342] Fix | Delete
* bypassing the proxy, in $settings['http_client_config']['proxy']['no'].
[343] Fix | Delete
*/
[344] Fix | Delete
# $settings['http_client_config']['proxy']['http'] = 'http://proxy_user:proxy_pass@example.com:8080';
[345] Fix | Delete
# $settings['http_client_config']['proxy']['https'] = 'http://proxy_user:proxy_pass@example.com:8080';
[346] Fix | Delete
# $settings['http_client_config']['proxy']['no'] = ['127.0.0.1', 'localhost'];
[347] Fix | Delete
[348] Fix | Delete
/**
[349] Fix | Delete
* Reverse Proxy Configuration:
[350] Fix | Delete
*
[351] Fix | Delete
* Reverse proxy servers are often used to enhance the performance
[352] Fix | Delete
* of heavily visited sites and may also provide other site caching,
[353] Fix | Delete
* security, or encryption benefits. In an environment where Drupal
[354] Fix | Delete
* is behind a reverse proxy, the real IP address of the client should
[355] Fix | Delete
* be determined such that the correct client IP address is available
[356] Fix | Delete
* to Drupal's logging and access management systems. In the most simple
[357] Fix | Delete
* scenario, the proxy server will add an X-Forwarded-For header to the request
[358] Fix | Delete
* that contains the client IP address. However, HTTP headers are vulnerable to
[359] Fix | Delete
* spoofing, where a malicious client could bypass restrictions by setting the
[360] Fix | Delete
* X-Forwarded-For header directly. Therefore, Drupal's proxy configuration
[361] Fix | Delete
* requires the IP addresses of all remote proxies to be specified in
[362] Fix | Delete
* $settings['reverse_proxy_addresses'] to work correctly.
[363] Fix | Delete
*
[364] Fix | Delete
* Enable this setting to get Drupal to determine the client IP from the
[365] Fix | Delete
* X-Forwarded-For header. If you are unsure about this setting, do not have a
[366] Fix | Delete
* reverse proxy, or Drupal operates in a shared hosting environment, this
[367] Fix | Delete
* setting should remain commented out.
[368] Fix | Delete
*
[369] Fix | Delete
* In order for this setting to be used you must specify every possible
[370] Fix | Delete
* reverse proxy IP address in $settings['reverse_proxy_addresses'].
[371] Fix | Delete
* If a complete list of reverse proxies is not available in your
[372] Fix | Delete
* environment (for example, if you use a CDN) you may set the
[373] Fix | Delete
* $_SERVER['REMOTE_ADDR'] variable directly in settings.php.
[374] Fix | Delete
* Be aware, however, that it is likely that this would allow IP
[375] Fix | Delete
* address spoofing unless more advanced precautions are taken.
[376] Fix | Delete
*/
[377] Fix | Delete
# $settings['reverse_proxy'] = TRUE;
[378] Fix | Delete
[379] Fix | Delete
/**
[380] Fix | Delete
* Reverse proxy addresses.
[381] Fix | Delete
*
[382] Fix | Delete
* Specify every reverse proxy IP address in your environment, as an array of
[383] Fix | Delete
* IPv4/IPv6 addresses or subnets in CIDR notation. This setting is required if
[384] Fix | Delete
* $settings['reverse_proxy'] is TRUE.
[385] Fix | Delete
*/
[386] Fix | Delete
# $settings['reverse_proxy_addresses'] = ['a.b.c.d', 'e.f.g.h/24', ...];
[387] Fix | Delete
[388] Fix | Delete
/**
[389] Fix | Delete
* Reverse proxy trusted headers.
[390] Fix | Delete
*
[391] Fix | Delete
* Sets which headers to trust from your reverse proxy.
[392] Fix | Delete
*
[393] Fix | Delete
* Common values are:
[394] Fix | Delete
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR
[395] Fix | Delete
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST
[396] Fix | Delete
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT
[397] Fix | Delete
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
[398] Fix | Delete
* - \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
[399] Fix | Delete
*
[400] Fix | Delete
* Note the default value of
[401] Fix | Delete
* @code
[402] Fix | Delete
* \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
[403] Fix | Delete
* @endcode
[404] Fix | Delete
* is not secure by default. The value should be set to only the specific
[405] Fix | Delete
* headers the reverse proxy uses. For example:
[406] Fix | Delete
* @code
[407] Fix | Delete
* \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
[408] Fix | Delete
* @endcode
[409] Fix | Delete
* This would trust the following headers:
[410] Fix | Delete
* - X_FORWARDED_FOR
[411] Fix | Delete
* - X_FORWARDED_HOST
[412] Fix | Delete
* - X_FORWARDED_PROTO
[413] Fix | Delete
* - X_FORWARDED_PORT
[414] Fix | Delete
*
[415] Fix | Delete
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR
[416] Fix | Delete
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST
[417] Fix | Delete
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT
[418] Fix | Delete
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
[419] Fix | Delete
* @see \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
[420] Fix | Delete
* @see \Symfony\Component\HttpFoundation\Request::setTrustedProxies
[421] Fix | Delete
*/
[422] Fix | Delete
# $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;
[423] Fix | Delete
[424] Fix | Delete
[425] Fix | Delete
/**
[426] Fix | Delete
* Page caching:
[427] Fix | Delete
*
[428] Fix | Delete
* By default, Drupal sends a "Vary: Cookie" HTTP header for anonymous page
[429] Fix | Delete
* views. This tells a HTTP proxy that it may return a page from its local
[430] Fix | Delete
* cache without contacting the web server, if the user sends the same Cookie
[431] Fix | Delete
* header as the user who originally requested the cached page. Without "Vary:
[432] Fix | Delete
* Cookie", authenticated users would also be served the anonymous page from
[433] Fix | Delete
* the cache. If the site has mostly anonymous users except a few known
[434] Fix | Delete
* editors/administrators, the Vary header can be omitted. This allows for
[435] Fix | Delete
* better caching in HTTP proxies (including reverse proxies), i.e. even if
[436] Fix | Delete
* clients send different cookies, they still get content served from the cache.
[437] Fix | Delete
* However, authenticated users should access the site directly (i.e. not use an
[438] Fix | Delete
* HTTP proxy, and bypass the reverse proxy if one is used) in order to avoid
[439] Fix | Delete
* getting cached pages from the proxy.
[440] Fix | Delete
*/
[441] Fix | Delete
# $settings['omit_vary_cookie'] = TRUE;
[442] Fix | Delete
[443] Fix | Delete
[444] Fix | Delete
/**
[445] Fix | Delete
* Cache TTL for client error (4xx) responses.
[446] Fix | Delete
*
[447] Fix | Delete
* Items cached per-URL tend to result in a large number of cache items, and
[448] Fix | Delete
* this can be problematic on 404 pages which by their nature are unbounded. A
[449] Fix | Delete
* fixed TTL can be set for these items, defaulting to one hour, so that cache
[450] Fix | Delete
* backends which do not support LRU can purge older entries. To disable caching
[451] Fix | Delete
* of client error responses set the value to 0. Currently applies only to
[452] Fix | Delete
* page_cache module.
[453] Fix | Delete
*/
[454] Fix | Delete
# $settings['cache_ttl_4xx'] = 3600;
[455] Fix | Delete
[456] Fix | Delete
/**
[457] Fix | Delete
* Expiration of cached forms.
[458] Fix | Delete
*
[459] Fix | Delete
* Drupal's Form API stores details of forms in a cache and these entries are
[460] Fix | Delete
* kept for at least 6 hours by default. Expired entries are cleared by cron.
[461] Fix | Delete
*
[462] Fix | Delete
* @see \Drupal\Core\Form\FormCache::setCache()
[463] Fix | Delete
*/
[464] Fix | Delete
# $settings['form_cache_expiration'] = 21600;
[465] Fix | Delete
[466] Fix | Delete
/**
[467] Fix | Delete
* Class Loader.
[468] Fix | Delete
*
[469] Fix | Delete
* If the APCu extension is detected, the classloader will be optimized to use
[470] Fix | Delete
* it. Set to FALSE to disable this.
[471] Fix | Delete
*
[472] Fix | Delete
* @see https://getcomposer.org/doc/articles/autoloader-optimization.md
[473] Fix | Delete
*/
[474] Fix | Delete
# $settings['class_loader_auto_detect'] = FALSE;
[475] Fix | Delete
[476] Fix | Delete
/**
[477] Fix | Delete
* Authorized file system operations:
[478] Fix | Delete
*
[479] Fix | Delete
* The Update Manager module included with Drupal provides a mechanism for
[480] Fix | Delete
* site administrators to securely install missing updates for the site
[481] Fix | Delete
* directly through the web user interface. On securely-configured servers,
[482] Fix | Delete
* the Update manager will require the administrator to provide SSH or FTP
[483] Fix | Delete
* credentials before allowing the installation to proceed; this allows the
[484] Fix | Delete
* site to update the new files as the user who owns all the Drupal files,
[485] Fix | Delete
* instead of as the user the webserver is running as. On servers where the
[486] Fix | Delete
* webserver user is itself the owner of the Drupal files, the administrator
[487] Fix | Delete
* will not be prompted for SSH or FTP credentials (note that these server
[488] Fix | Delete
* setups are common on shared hosting, but are inherently insecure).
[489] Fix | Delete
*
[490] Fix | Delete
* Some sites might wish to disable the above functionality, and only update
[491] Fix | Delete
* the code directly via SSH or FTP themselves. This setting completely
[492] Fix | Delete
* disables all functionality related to these authorized file operations.
[493] Fix | Delete
*
[494] Fix | Delete
* @see https://www.drupal.org/node/244924
[495] Fix | Delete
*
[496] Fix | Delete
* Remove the leading hash signs to disable.
[497] Fix | Delete
*/
[498] Fix | Delete
# $settings['allow_authorize_operations'] = FALSE;
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function