mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2024-11-24 23:23:26 +00:00
54 lines
2.3 KiB
PHP
54 lines
2.3 KiB
PHP
|
<?php
|
||
|
|
||
|
$host = "db";
|
||
|
$port = 3306;
|
||
|
$driver = "mysql";
|
||
|
|
||
|
$databases['default']['default']['database'] = "db";
|
||
|
$databases['default']['default']['username'] = "db";
|
||
|
$databases['default']['default']['password'] = "db";
|
||
|
$databases['default']['default']['host'] = $host;
|
||
|
$databases['default']['default']['port'] = $port;
|
||
|
$databases['default']['default']['driver'] = $driver;
|
||
|
|
||
|
$d7_host = "ddev-migration-drupal7-db";
|
||
|
$databases['migrate']['default']['database'] = "db";
|
||
|
$databases['migrate']['default']['username'] = "db";
|
||
|
$databases['migrate']['default']['password'] = "db";
|
||
|
$databases['migrate']['default']['host'] = $d7_host;
|
||
|
$databases['migrate']['default']['port'] = $port;
|
||
|
$databases['migrate']['default']['driver'] = $driver;
|
||
|
|
||
|
$settings['hash_salt'] = 'b608df2caf92c495bc3c40b0436b3b46104ffe5dfdc493fb6e93a9fec09406d1';
|
||
|
|
||
|
// Recommended setting for Drupal 10 only
|
||
|
$settings['state_cache'] = TRUE;
|
||
|
|
||
|
// 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;
|
||
|
|
||
|
// Set $settings['config_sync_directory'] if not set in settings.php.
|
||
|
if (empty($settings['config_sync_directory'])) {
|
||
|
$settings['config_sync_directory'] = 'sites/default/files/sync';
|
||
|
}
|
||
|
|
||
|
// Override drupal/symfony_mailer default config to use Mailpit.
|
||
|
$config['symfony_mailer.settings']['default_transport'] = 'sendmail';
|
||
|
$config['symfony_mailer.mailer_transport.sendmail']['plugin'] = 'smtp';
|
||
|
$config['symfony_mailer.mailer_transport.sendmail']['configuration']['user'] = '';
|
||
|
$config['symfony_mailer.mailer_transport.sendmail']['configuration']['pass'] = '';
|
||
|
$config['symfony_mailer.mailer_transport.sendmail']['configuration']['host'] = 'localhost';
|
||
|
$config['symfony_mailer.mailer_transport.sendmail']['configuration']['port'] = '1025';
|
||
|
|
||
|
// Enable verbose logging for errors.
|
||
|
// https://www.drupal.org/forum/support/post-installation/2018-07-18/enable-drupal-8-backend-errorlogdebugging-mode
|
||
|
$config['system.logging']['error_level'] = 'verbose';
|