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