diff --git a/README.md b/README.md index 2fd7f5b..3c39fa3 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# Base template for Drupal 9 projects hosted on Lagoon - +# Base template for Drupal 9 projects hosted on Lagoon...........dd +.......PR...........................dfsdfsdf.....ss....fgdfg...dd....dfdfdfdf.... This template includes everything necessary to run on [Lagoon](https://www.github.com/uselagoon/lagoon) (in both the local development environments or on hosted Lagoon clusters.) -This project template should provide a kickstart for managing your site +This project template should provide a kickstart for dmanaging your site dependencies with [Composer](https://getcomposer.org/). It is based on the [original Drupal Composer Template](https://github.com/drupal-composer/drupal-project), ## Included Services diff --git a/assets/all.settings.php b/assets/all.settings.php index c688430..b8406dd 100644 --- a/assets/all.settings.php +++ b/assets/all.settings.php @@ -14,6 +14,20 @@ // folder outside this subfolder for an advanced security measure: '../config/sync'. $settings['config_sync_directory'] = '../config/sync'; + +// Database connection settings to enforce utf8mb4_general_ci. +$databases['default']['default'] = [ + 'driver' => 'mysql', + 'database' => getenv('MARIADB_DATABASE'), + 'username' => getenv('MARIADB_USERNAME'), + 'password' => getenv('MARIADB_PASSWORD'), + 'host' => getenv('MARIADB_HOST'), + 'port' => getenv('MARIADB_PORT'), + 'prefix' => '', + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_general_ci', +]; + if (getenv('LAGOON_ENVIRONMENT_TYPE') !== 'production') { /** * Skip file system permissions hardening.