Commit ddev settings and hope it works across systems
This commit is contained in:
parent
f0637e19eb
commit
d3d8fe66e4
1 changed files with 52 additions and 0 deletions
52
web/sites/default/settings.ddev.php
Normal file
52
web/sites/default/settings.ddev.php
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* #ddev-generated: Automatically generated Drupal settings file.
|
||||
* ddev manages this file and may delete or overwrite the file unless this
|
||||
* comment is removed.
|
||||
*/
|
||||
|
||||
$host = "db";
|
||||
$port = 3306;
|
||||
|
||||
// If DDEV_PHP_VERSION is not set, it means we're running on the host,
|
||||
// so use the host-side bind port on docker IP
|
||||
if (empty(getenv('DDEV_PHP_VERSION'))) {
|
||||
$host = "127.0.0.1";
|
||||
$port = 32772;
|
||||
}
|
||||
|
||||
$databases['default']['default'] = array(
|
||||
'database' => "db",
|
||||
'username' => "db",
|
||||
'password' => "db",
|
||||
'host' => $host,
|
||||
'driver' => "mysql",
|
||||
'port' => $port,
|
||||
'prefix' => "",
|
||||
);
|
||||
|
||||
ini_set('session.gc_probability', 1);
|
||||
ini_set('session.gc_divisor', 100);
|
||||
ini_set('session.gc_maxlifetime', 200000);
|
||||
ini_set('session.cookie_lifetime', 2000000);
|
||||
|
||||
$settings['hash_salt'] = 'IusigTIUkiSynsUtkjbojPeMrINcRKOjCkvClWOgbupTKqNNfHPBcUDunGYnRBfg';
|
||||
|
||||
$settings['file_scan_ignore_directories'] = [
|
||||
'node_modules',
|
||||
'bower_components',
|
||||
];
|
||||
|
||||
// This will prevent Drupal from setting read-only permissions on sites/default.
|
||||
$settings['skip_permissions_hardening'] = TRUE;
|
||||
|
||||
// This will ensure the site can only be accessed through the intended host
|
||||
// names. Additional host patterns can be added for custom configurations.
|
||||
$settings['trusted_host_patterns'] = ['.*'];
|
||||
|
||||
// Don't use Symfony's APCLoader. ddev includes APCu; Composer's APCu loader has
|
||||
// better performance.
|
||||
$settings['class_loader_auto_detect'] = FALSE;
|
||||
|
Loading…
Add table
Reference in a new issue