When DDEV launches Drupal for you it creates settings.ddev.php files. This file is added as an include to the settings.php file that Durpal generally uses. Scroll to the bottom of your settings.php file and you will see the code that DDEV has had to append there after your first installation.