default.settings.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. <?php
  2. /**
  3. * @file
  4. * Drupal site-specific configuration file.
  5. *
  6. * IMPORTANT NOTE:
  7. * This file may have been set to read-only by the Drupal installation program.
  8. * If you make changes to this file, be sure to protect it again after making
  9. * your modifications. Failure to remove write permissions to this file is a
  10. * security risk.
  11. *
  12. * In order to use the selection rules below the multisite aliasing file named
  13. * sites/sites.php must be present. Its optional settings will be loaded, and
  14. * the aliases in the array $sites will override the default directory rules
  15. * below. See sites/example.sites.php for more information about aliases.
  16. *
  17. * The configuration directory will be discovered by stripping the website's
  18. * hostname from left to right and pathname from right to left. The first
  19. * configuration file found will be used and any others will be ignored. If no
  20. * other configuration file is found then the default configuration file at
  21. * 'sites/default' will be used.
  22. *
  23. * For example, for a fictitious site installed at
  24. * https://www.drupal.org:8080/mysite/test/, the 'settings.php' file is searched
  25. * for in the following directories:
  26. *
  27. * - sites/8080.www.drupal.org.mysite.test
  28. * - sites/www.drupal.org.mysite.test
  29. * - sites/drupal.org.mysite.test
  30. * - sites/org.mysite.test
  31. *
  32. * - sites/8080.www.drupal.org.mysite
  33. * - sites/www.drupal.org.mysite
  34. * - sites/drupal.org.mysite
  35. * - sites/org.mysite
  36. *
  37. * - sites/8080.www.drupal.org
  38. * - sites/www.drupal.org
  39. * - sites/drupal.org
  40. * - sites/org
  41. *
  42. * - sites/default
  43. *
  44. * Note that if you are installing on a non-standard port number, prefix the
  45. * hostname with that number. For example,
  46. * https://www.drupal.org:8080/mysite/test/ could be loaded from
  47. * sites/8080.www.drupal.org.mysite.test/.
  48. *
  49. * @see example.sites.php
  50. * @see \Drupal\Core\DrupalKernel::getSitePath()
  51. *
  52. * In addition to customizing application settings through variables in
  53. * settings.php, you can create a services.yml file in the same directory to
  54. * register custom, site-specific service definitions and/or swap out default
  55. * implementations with custom ones.
  56. */
  57. /**
  58. * Database settings:
  59. *
  60. * The $databases array specifies the database connection or
  61. * connections that Drupal may use. Drupal is able to connect
  62. * to multiple databases, including multiple types of databases,
  63. * during the same request.
  64. *
  65. * One example of the simplest connection array is shown below. To use the
  66. * sample settings, copy and uncomment the code below between the @code and
  67. * @endcode lines and paste it after the $databases declaration. You will need
  68. * to replace the database username and password and possibly the host and port
  69. * with the appropriate credentials for your database system.
  70. *
  71. * The next section describes how to customize the $databases array for more
  72. * specific needs.
  73. *
  74. * @code
  75. * $databases['default']['default'] = array (
  76. * 'database' => 'databasename',
  77. * 'username' => 'sqlusername',
  78. * 'password' => 'sqlpassword',
  79. * 'host' => 'localhost',
  80. * 'port' => '3306',
  81. * 'driver' => 'mysql',
  82. * 'prefix' => '',
  83. * 'collation' => 'utf8mb4_general_ci',
  84. * );
  85. * @endcode
  86. */
  87. $databases = array();
  88. /**
  89. * Customizing database settings.
  90. *
  91. * Many of the values of the $databases array can be customized for your
  92. * particular database system. Refer to the sample in the section above as a
  93. * starting point.
  94. *
  95. * The "driver" property indicates what Drupal database driver the
  96. * connection should use. This is usually the same as the name of the
  97. * database type, such as mysql or sqlite, but not always. The other
  98. * properties will vary depending on the driver. For SQLite, you must
  99. * specify a database file name in a directory that is writable by the
  100. * webserver. For most other drivers, you must specify a
  101. * username, password, host, and database name.
  102. *
  103. * Transaction support is enabled by default for all drivers that support it,
  104. * including MySQL. To explicitly disable it, set the 'transactions' key to
  105. * FALSE.
  106. * Note that some configurations of MySQL, such as the MyISAM engine, don't
  107. * support it and will proceed silently even if enabled. If you experience
  108. * transaction related crashes with such configuration, set the 'transactions'
  109. * key to FALSE.
  110. *
  111. * For each database, you may optionally specify multiple "target" databases.
  112. * A target database allows Drupal to try to send certain queries to a
  113. * different database if it can but fall back to the default connection if not.
  114. * That is useful for primary/replica replication, as Drupal may try to connect
  115. * to a replica server when appropriate and if one is not available will simply
  116. * fall back to the single primary server (The terms primary/replica are
  117. * traditionally referred to as master/slave in database server documentation).
  118. *
  119. * The general format for the $databases array is as follows:
  120. * @code
  121. * $databases['default']['default'] = $info_array;
  122. * $databases['default']['replica'][] = $info_array;
  123. * $databases['default']['replica'][] = $info_array;
  124. * $databases['extra']['default'] = $info_array;
  125. * @endcode
  126. *
  127. * In the above example, $info_array is an array of settings described above.
  128. * The first line sets a "default" database that has one primary database
  129. * (the second level default). The second and third lines create an array
  130. * of potential replica databases. Drupal will select one at random for a given
  131. * request as needed. The fourth line creates a new database with a name of
  132. * "extra".
  133. *
  134. * You can optionally set prefixes for some or all database table names
  135. * by using the 'prefix' setting. If a prefix is specified, the table
  136. * name will be prepended with its value. Be sure to use valid database
  137. * characters only, usually alphanumeric and underscore. If no prefixes
  138. * are desired, leave it as an empty string ''.
  139. *
  140. * To have all database names prefixed, set 'prefix' as a string:
  141. * @code
  142. * 'prefix' => 'main_',
  143. * @endcode
  144. * To provide prefixes for specific tables, set 'prefix' as an array.
  145. * The array's keys are the table names and the values are the prefixes.
  146. * The 'default' element is mandatory and holds the prefix for any tables
  147. * not specified elsewhere in the array. Example:
  148. * @code
  149. * 'prefix' => array(
  150. * 'default' => 'main_',
  151. * 'users' => 'shared_',
  152. * 'sessions' => 'shared_',
  153. * 'role' => 'shared_',
  154. * 'authmap' => 'shared_',
  155. * ),
  156. * @endcode
  157. * You can also use a reference to a schema/database as a prefix. This may be
  158. * useful if your Drupal installation exists in a schema that is not the default
  159. * or you want to access several databases from the same code base at the same
  160. * time.
  161. * Example:
  162. * @code
  163. * 'prefix' => array(
  164. * 'default' => 'main.',
  165. * 'users' => 'shared.',
  166. * 'sessions' => 'shared.',
  167. * 'role' => 'shared.',
  168. * 'authmap' => 'shared.',
  169. * );
  170. * @endcode
  171. * NOTE: MySQL and SQLite's definition of a schema is a database.
  172. *
  173. * Advanced users can add or override initial commands to execute when
  174. * connecting to the database server, as well as PDO connection settings. For
  175. * example, to enable MySQL SELECT queries to exceed the max_join_size system
  176. * variable, and to reduce the database connection timeout to 5 seconds:
  177. * @code
  178. * $databases['default']['default'] = array(
  179. * 'init_commands' => array(
  180. * 'big_selects' => 'SET SQL_BIG_SELECTS=1',
  181. * ),
  182. * 'pdo' => array(
  183. * PDO::ATTR_TIMEOUT => 5,
  184. * ),
  185. * );
  186. * @endcode
  187. *
  188. * WARNING: The above defaults are designed for database portability. Changing
  189. * them may cause unexpected behavior, including potential data loss. See
  190. * https://www.drupal.org/developing/api/database/configuration for more
  191. * information on these defaults and the potential issues.
  192. *
  193. * More details can be found in the constructor methods for each driver:
  194. * - \Drupal\Core\Database\Driver\mysql\Connection::__construct()
  195. * - \Drupal\Core\Database\Driver\pgsql\Connection::__construct()
  196. * - \Drupal\Core\Database\Driver\sqlite\Connection::__construct()
  197. *
  198. * Sample Database configuration format for PostgreSQL (pgsql):
  199. * @code
  200. * $databases['default']['default'] = array(
  201. * 'driver' => 'pgsql',
  202. * 'database' => 'databasename',
  203. * 'username' => 'sqlusername',
  204. * 'password' => 'sqlpassword',
  205. * 'host' => 'localhost',
  206. * 'prefix' => '',
  207. * );
  208. * @endcode
  209. *
  210. * Sample Database configuration format for SQLite (sqlite):
  211. * @code
  212. * $databases['default']['default'] = array(
  213. * 'driver' => 'sqlite',
  214. * 'database' => '/path/to/databasefilename',
  215. * );
  216. * @endcode
  217. */
  218. /**
  219. * Location of the site configuration files.
  220. *
  221. * The $config_directories array specifies the location of file system
  222. * directories used for configuration data. On install, the "sync" directory is
  223. * created. This is used for configuration imports. The "active" directory is
  224. * not created by default since the default storage for active configuration is
  225. * the database rather than the file system. (This can be changed. See "Active
  226. * configuration settings" below).
  227. *
  228. * The default location for the "sync" directory is inside a randomly-named
  229. * directory in the public files path. The setting below allows you to override
  230. * the "sync" location.
  231. *
  232. * If you use files for the "active" configuration, you can tell the
  233. * Configuration system where this directory is located by adding an entry with
  234. * array key CONFIG_ACTIVE_DIRECTORY.
  235. *
  236. * Example:
  237. * @code
  238. * $config_directories = array(
  239. * CONFIG_SYNC_DIRECTORY => '/directory/outside/webroot',
  240. * );
  241. * @endcode
  242. */
  243. $config_directories = array();
  244. /**
  245. * Settings:
  246. *
  247. * $settings contains environment-specific configuration, such as the files
  248. * directory and reverse proxy address, and temporary configuration, such as
  249. * security overrides.
  250. *
  251. * @see \Drupal\Core\Site\Settings::get()
  252. */
  253. /**
  254. * The active installation profile.
  255. *
  256. * Changing this after installation is not recommended as it changes which
  257. * directories are scanned during extension discovery. If this is set prior to
  258. * installation this value will be rewritten according to the profile selected
  259. * by the user.
  260. *
  261. * @see install_select_profile()
  262. */
  263. # $settings['install_profile'] = '';
  264. /**
  265. * Salt for one-time login links, cancel links, form tokens, etc.
  266. *
  267. * This variable will be set to a random value by the installer. All one-time
  268. * login links will be invalidated if the value is changed. Note that if your
  269. * site is deployed on a cluster of web servers, you must ensure that this
  270. * variable has the same value on each server.
  271. *
  272. * For enhanced security, you may set this variable to the contents of a file
  273. * outside your document root; you should also ensure that this file is not
  274. * stored with backups of your database.
  275. *
  276. * Example:
  277. * @code
  278. * $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
  279. * @endcode
  280. */
  281. $settings['hash_salt'] = '';
  282. /**
  283. * Deployment identifier.
  284. *
  285. * Drupal's dependency injection container will be automatically invalidated and
  286. * rebuilt when the Drupal core version changes. When updating contributed or
  287. * custom code that changes the container, changing this identifier will also
  288. * allow the container to be invalidated as soon as code is deployed.
  289. */
  290. # $settings['deployment_identifier'] = \Drupal::VERSION;
  291. /**
  292. * Access control for update.php script.
  293. *
  294. * If you are updating your Drupal installation using the update.php script but
  295. * are not logged in using either an account with the "Administer software
  296. * updates" permission or the site maintenance account (the account that was
  297. * created during installation), you will need to modify the access check
  298. * statement below. Change the FALSE to a TRUE to disable the access check.
  299. * After finishing the upgrade, be sure to open this file again and change the
  300. * TRUE back to a FALSE!
  301. */
  302. $settings['update_free_access'] = FALSE;
  303. /**
  304. * External access proxy settings:
  305. *
  306. * If your site must access the Internet via a web proxy then you can enter the
  307. * proxy settings here. Set the full URL of the proxy, including the port, in
  308. * variables:
  309. * - $settings['http_client_config']['proxy']['http']: The proxy URL for HTTP
  310. * requests.
  311. * - $settings['http_client_config']['proxy']['https']: The proxy URL for HTTPS
  312. * requests.
  313. * You can pass in the user name and password for basic authentication in the
  314. * URLs in these settings.
  315. *
  316. * You can also define an array of host names that can be accessed directly,
  317. * bypassing the proxy, in $settings['http_client_config']['proxy']['no'].
  318. */
  319. # $settings['http_client_config']['proxy']['http'] = 'http://proxy_user:proxy_pass@example.com:8080';
  320. # $settings['http_client_config']['proxy']['https'] = 'http://proxy_user:proxy_pass@example.com:8080';
  321. # $settings['http_client_config']['proxy']['no'] = ['127.0.0.1', 'localhost'];
  322. /**
  323. * Reverse Proxy Configuration:
  324. *
  325. * Reverse proxy servers are often used to enhance the performance
  326. * of heavily visited sites and may also provide other site caching,
  327. * security, or encryption benefits. In an environment where Drupal
  328. * is behind a reverse proxy, the real IP address of the client should
  329. * be determined such that the correct client IP address is available
  330. * to Drupal's logging, statistics, and access management systems. In
  331. * the most simple scenario, the proxy server will add an
  332. * X-Forwarded-For header to the request that contains the client IP
  333. * address. However, HTTP headers are vulnerable to spoofing, where a
  334. * malicious client could bypass restrictions by setting the
  335. * X-Forwarded-For header directly. Therefore, Drupal's proxy
  336. * configuration requires the IP addresses of all remote proxies to be
  337. * specified in $settings['reverse_proxy_addresses'] to work correctly.
  338. *
  339. * Enable this setting to get Drupal to determine the client IP from
  340. * the X-Forwarded-For header (or $settings['reverse_proxy_header'] if set).
  341. * If you are unsure about this setting, do not have a reverse proxy,
  342. * or Drupal operates in a shared hosting environment, this setting
  343. * should remain commented out.
  344. *
  345. * In order for this setting to be used you must specify every possible
  346. * reverse proxy IP address in $settings['reverse_proxy_addresses'].
  347. * If a complete list of reverse proxies is not available in your
  348. * environment (for example, if you use a CDN) you may set the
  349. * $_SERVER['REMOTE_ADDR'] variable directly in settings.php.
  350. * Be aware, however, that it is likely that this would allow IP
  351. * address spoofing unless more advanced precautions are taken.
  352. */
  353. # $settings['reverse_proxy'] = TRUE;
  354. /**
  355. * Specify every reverse proxy IP address in your environment.
  356. * This setting is required if $settings['reverse_proxy'] is TRUE.
  357. */
  358. # $settings['reverse_proxy_addresses'] = array('a.b.c.d', ...);
  359. /**
  360. * Set this value if your proxy server sends the client IP in a header
  361. * other than X-Forwarded-For.
  362. */
  363. # $settings['reverse_proxy_header'] = 'X_CLUSTER_CLIENT_IP';
  364. /**
  365. * Set this value if your proxy server sends the client protocol in a header
  366. * other than X-Forwarded-Proto.
  367. */
  368. # $settings['reverse_proxy_proto_header'] = 'X_FORWARDED_PROTO';
  369. /**
  370. * Set this value if your proxy server sends the client protocol in a header
  371. * other than X-Forwarded-Host.
  372. */
  373. # $settings['reverse_proxy_host_header'] = 'X_FORWARDED_HOST';
  374. /**
  375. * Set this value if your proxy server sends the client protocol in a header
  376. * other than X-Forwarded-Port.
  377. */
  378. # $settings['reverse_proxy_port_header'] = 'X_FORWARDED_PORT';
  379. /**
  380. * Set this value if your proxy server sends the client protocol in a header
  381. * other than Forwarded.
  382. */
  383. # $settings['reverse_proxy_forwarded_header'] = 'FORWARDED';
  384. /**
  385. * Page caching:
  386. *
  387. * By default, Drupal sends a "Vary: Cookie" HTTP header for anonymous page
  388. * views. This tells a HTTP proxy that it may return a page from its local
  389. * cache without contacting the web server, if the user sends the same Cookie
  390. * header as the user who originally requested the cached page. Without "Vary:
  391. * Cookie", authenticated users would also be served the anonymous page from
  392. * the cache. If the site has mostly anonymous users except a few known
  393. * editors/administrators, the Vary header can be omitted. This allows for
  394. * better caching in HTTP proxies (including reverse proxies), i.e. even if
  395. * clients send different cookies, they still get content served from the cache.
  396. * However, authenticated users should access the site directly (i.e. not use an
  397. * HTTP proxy, and bypass the reverse proxy if one is used) in order to avoid
  398. * getting cached pages from the proxy.
  399. */
  400. # $settings['omit_vary_cookie'] = TRUE;
  401. /**
  402. * Class Loader.
  403. *
  404. * If the APC extension is detected, the Symfony APC class loader is used for
  405. * performance reasons. Detection can be prevented by setting
  406. * class_loader_auto_detect to false, as in the example below.
  407. */
  408. # $settings['class_loader_auto_detect'] = FALSE;
  409. /*
  410. * If the APC extension is not detected, either because APC is missing or
  411. * because auto-detection has been disabled, auto-loading falls back to
  412. * Composer's ClassLoader, which is good for development as it does not break
  413. * when code is moved in the file system. You can also decorate the base class
  414. * loader with another cached solution than the Symfony APC class loader, as
  415. * all production sites should have a cached class loader of some sort enabled.
  416. *
  417. * To do so, you may decorate and replace the local $class_loader variable. For
  418. * example, to use Symfony's APC class loader without automatic detection,
  419. * uncomment the code below.
  420. */
  421. /*
  422. if ($settings['hash_salt']) {
  423. $prefix = 'drupal.' . hash('sha256', 'drupal.' . $settings['hash_salt']);
  424. $apc_loader = new \Symfony\Component\ClassLoader\ApcClassLoader($prefix, $class_loader);
  425. unset($prefix);
  426. $class_loader->unregister();
  427. $apc_loader->register();
  428. $class_loader = $apc_loader;
  429. }
  430. */
  431. /**
  432. * Authorized file system operations:
  433. *
  434. * The Update Manager module included with Drupal provides a mechanism for
  435. * site administrators to securely install missing updates for the site
  436. * directly through the web user interface. On securely-configured servers,
  437. * the Update manager will require the administrator to provide SSH or FTP
  438. * credentials before allowing the installation to proceed; this allows the
  439. * site to update the new files as the user who owns all the Drupal files,
  440. * instead of as the user the webserver is running as. On servers where the
  441. * webserver user is itself the owner of the Drupal files, the administrator
  442. * will not be prompted for SSH or FTP credentials (note that these server
  443. * setups are common on shared hosting, but are inherently insecure).
  444. *
  445. * Some sites might wish to disable the above functionality, and only update
  446. * the code directly via SSH or FTP themselves. This setting completely
  447. * disables all functionality related to these authorized file operations.
  448. *
  449. * @see https://www.drupal.org/node/244924
  450. *
  451. * Remove the leading hash signs to disable.
  452. */
  453. # $settings['allow_authorize_operations'] = FALSE;
  454. /**
  455. * Default mode for directories and files written by Drupal.
  456. *
  457. * Value should be in PHP Octal Notation, with leading zero.
  458. */
  459. # $settings['file_chmod_directory'] = 0775;
  460. # $settings['file_chmod_file'] = 0664;
  461. /**
  462. * Public file base URL:
  463. *
  464. * An alternative base URL to be used for serving public files. This must
  465. * include any leading directory path.
  466. *
  467. * A different value from the domain used by Drupal to be used for accessing
  468. * public files. This can be used for a simple CDN integration, or to improve
  469. * security by serving user-uploaded files from a different domain or subdomain
  470. * pointing to the same server. Do not include a trailing slash.
  471. */
  472. # $settings['file_public_base_url'] = 'http://downloads.example.com/files';
  473. /**
  474. * Public file path:
  475. *
  476. * A local file system path where public files will be stored. This directory
  477. * must exist and be writable by Drupal. This directory must be relative to
  478. * the Drupal installation directory and be accessible over the web.
  479. */
  480. # $settings['file_public_path'] = 'sites/default/files';
  481. /**
  482. * Private file path:
  483. *
  484. * A local file system path where private files will be stored. This directory
  485. * must be absolute, outside of the Drupal installation directory and not
  486. * accessible over the web.
  487. *
  488. * Note: Caches need to be cleared when this value is changed to make the
  489. * private:// stream wrapper available to the system.
  490. *
  491. * See https://www.drupal.org/documentation/modules/file for more information
  492. * about securing private files.
  493. */
  494. # $settings['file_private_path'] = '';
  495. /**
  496. * Session write interval:
  497. *
  498. * Set the minimum interval between each session write to database.
  499. * For performance reasons it defaults to 180.
  500. */
  501. # $settings['session_write_interval'] = 180;
  502. /**
  503. * String overrides:
  504. *
  505. * To override specific strings on your site with or without enabling the Locale
  506. * module, add an entry to this list. This functionality allows you to change
  507. * a small number of your site's default English language interface strings.
  508. *
  509. * Remove the leading hash signs to enable.
  510. *
  511. * The "en" part of the variable name, is dynamic and can be any langcode of
  512. * any added language. (eg locale_custom_strings_de for german).
  513. */
  514. # $settings['locale_custom_strings_en'][''] = array(
  515. # 'forum' => 'Discussion board',
  516. # '@count min' => '@count minutes',
  517. # );
  518. /**
  519. * A custom theme for the offline page:
  520. *
  521. * This applies when the site is explicitly set to maintenance mode through the
  522. * administration page or when the database is inactive due to an error.
  523. * The template file should also be copied into the theme. It is located inside
  524. * 'core/modules/system/templates/maintenance-page.html.twig'.
  525. *
  526. * Note: This setting does not apply to installation and update pages.
  527. */
  528. # $settings['maintenance_theme'] = 'bartik';
  529. /**
  530. * PHP settings:
  531. *
  532. * To see what PHP settings are possible, including whether they can be set at
  533. * runtime (by using ini_set()), read the PHP documentation:
  534. * http://php.net/manual/ini.list.php
  535. * See \Drupal\Core\DrupalKernel::bootEnvironment() for required runtime
  536. * settings and the .htaccess file for non-runtime settings.
  537. * Settings defined there should not be duplicated here so as to avoid conflict
  538. * issues.
  539. */
  540. /**
  541. * If you encounter a situation where users post a large amount of text, and
  542. * the result is stripped out upon viewing but can still be edited, Drupal's
  543. * output filter may not have sufficient memory to process it. If you
  544. * experience this issue, you may wish to uncomment the following two lines
  545. * and increase the limits of these variables. For more information, see
  546. * http://php.net/manual/pcre.configuration.php.
  547. */
  548. # ini_set('pcre.backtrack_limit', 200000);
  549. # ini_set('pcre.recursion_limit', 200000);
  550. /**
  551. * Active configuration settings.
  552. *
  553. * By default, the active configuration is stored in the database in the
  554. * {config} table. To use a different storage mechanism for the active
  555. * configuration, do the following prior to installing:
  556. * - Create an "active" directory and declare its path in $config_directories
  557. * as explained under the 'Location of the site configuration files' section
  558. * above in this file. To enhance security, you can declare a path that is
  559. * outside your document root.
  560. * - Override the 'bootstrap_config_storage' setting here. It must be set to a
  561. * callable that returns an object that implements
  562. * \Drupal\Core\Config\StorageInterface.
  563. * - Override the service definition 'config.storage.active'. Put this
  564. * override in a services.yml file in the same directory as settings.php
  565. * (definitions in this file will override service definition defaults).
  566. */
  567. # $settings['bootstrap_config_storage'] = array('Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage');
  568. /**
  569. * Configuration overrides.
  570. *
  571. * To globally override specific configuration values for this site,
  572. * set them here. You usually don't need to use this feature. This is
  573. * useful in a configuration file for a vhost or directory, rather than
  574. * the default settings.php.
  575. *
  576. * Note that any values you provide in these variable overrides will not be
  577. * viewable from the Drupal administration interface. The administration
  578. * interface displays the values stored in configuration so that you can stage
  579. * changes to other environments that don't have the overrides.
  580. *
  581. * There are particular configuration values that are risky to override. For
  582. * example, overriding the list of installed modules in 'core.extension' is not
  583. * supported as module install or uninstall has not occurred. Other examples
  584. * include field storage configuration, because it has effects on database
  585. * structure, and 'core.menu.static_menu_link_overrides' since this is cached in
  586. * a way that is not config override aware. Also, note that changing
  587. * configuration values in settings.php will not fire any of the configuration
  588. * change events.
  589. */
  590. # $config['system.site']['name'] = 'My Drupal site';
  591. # $config['system.theme']['default'] = 'stark';
  592. # $config['user.settings']['anonymous'] = 'Visitor';
  593. /**
  594. * Fast 404 pages:
  595. *
  596. * Drupal can generate fully themed 404 pages. However, some of these responses
  597. * are for images or other resource files that are not displayed to the user.
  598. * This can waste bandwidth, and also generate server load.
  599. *
  600. * The options below return a simple, fast 404 page for URLs matching a
  601. * specific pattern:
  602. * - $config['system.performance']['fast_404']['exclude_paths']: A regular
  603. * expression to match paths to exclude, such as images generated by image
  604. * styles, or dynamically-resized images. The default pattern provided below
  605. * also excludes the private file system. If you need to add more paths, you
  606. * can add '|path' to the expression.
  607. * - $config['system.performance']['fast_404']['paths']: A regular expression to
  608. * match paths that should return a simple 404 page, rather than the fully
  609. * themed 404 page. If you don't have any aliases ending in htm or html you
  610. * can add '|s?html?' to the expression.
  611. * - $config['system.performance']['fast_404']['html']: The html to return for
  612. * simple 404 pages.
  613. *
  614. * Remove the leading hash signs if you would like to alter this functionality.
  615. */
  616. # $config['system.performance']['fast_404']['exclude_paths'] = '/\/(?:styles)|(?:system\/files)\//';
  617. # $config['system.performance']['fast_404']['paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
  618. # $config['system.performance']['fast_404']['html'] = '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
  619. /**
  620. * Load services definition file.
  621. */
  622. $settings['container_yamls'][] = __DIR__ . '/services.yml';
  623. /**
  624. * Override the default service container class.
  625. *
  626. * This is useful for example to trace the service container for performance
  627. * tracking purposes, for testing a service container with an error condition or
  628. * to test a service container that throws an exception.
  629. */
  630. # $settings['container_base_class'] = '\Drupal\Core\DependencyInjection\Container';
  631. /**
  632. * Trusted host configuration.
  633. *
  634. * Drupal core can use the Symfony trusted host mechanism to prevent HTTP Host
  635. * header spoofing.
  636. *
  637. * To enable the trusted host mechanism, you enable your allowable hosts
  638. * in $settings['trusted_host_patterns']. This should be an array of regular
  639. * expression patterns, without delimiters, representing the hosts you would
  640. * like to allow.
  641. *
  642. * For example:
  643. * @code
  644. * $settings['trusted_host_patterns'] = array(
  645. * '^www\.example\.com$',
  646. * );
  647. * @endcode
  648. * will allow the site to only run from www.example.com.
  649. *
  650. * If you are running multisite, or if you are running your site from
  651. * different domain names (eg, you don't redirect http://www.example.com to
  652. * http://example.com), you should specify all of the host patterns that are
  653. * allowed by your site.
  654. *
  655. * For example:
  656. * @code
  657. * $settings['trusted_host_patterns'] = array(
  658. * '^example\.com$',
  659. * '^.+\.example\.com$',
  660. * '^example\.org$',
  661. * '^.+\.example\.org$',
  662. * );
  663. * @endcode
  664. * will allow the site to run off of all variants of example.com and
  665. * example.org, with all subdomains included.
  666. */
  667. /**
  668. * Load local development override configuration, if available.
  669. *
  670. * Use settings.local.php to override variables on secondary (staging,
  671. * development, etc) installations of this site. Typically used to disable
  672. * caching, JavaScript/CSS compression, re-routing of outgoing emails, and
  673. * other things that should not happen on development and testing sites.
  674. *
  675. * Keep this code block at the end of this file to take full effect.
  676. */
  677. # if (file_exists(__DIR__ . '/settings.local.php')) {
  678. # include __DIR__ . '/settings.local.php';
  679. # }