github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/pkg/ddevapp/wordpress/wp-config.php (about) 1 <?php 2 {{ $config := . }}/** 3 * #ddev-generated: Automatically generated WordPress settings file. 4 * ddev manages this file and may delete or overwrite the file unless this comment is removed. 5 * It is recommended that you leave this file alone. 6 * 7 * @package ddevapp 8 */ 9 10 /** Database charset to use in creating database tables. */ 11 define( 'DB_CHARSET', '{{ $config.DbCharset }}' ); 12 13 /** The database collate type. Don't change this if in doubt. */ 14 define( 'DB_COLLATE', '{{ $config.DbCollate }}' ); 15 16 /** Authentication Unique Keys and Salts. */ 17 define( 'AUTH_KEY', '{{ $config.AuthKey }}' ); 18 define( 'SECURE_AUTH_KEY', '{{ $config.SecureAuthKey }}' ); 19 define( 'LOGGED_IN_KEY', '{{ $config.LoggedInKey }}' ); 20 define( 'NONCE_KEY', '{{ $config.NonceKey }}' ); 21 define( 'AUTH_SALT', '{{ $config.AuthSalt }}' ); 22 define( 'SECURE_AUTH_SALT', '{{ $config.SecureAuthSalt }}' ); 23 define( 'LOGGED_IN_SALT', '{{ $config.LoggedInSalt }}' ); 24 define( 'NONCE_SALT', '{{ $config.NonceSalt }}' ); 25 26 /** Absolute path to the WordPress directory. */ 27 defined( 'ABSPATH' ) || define( 'ABSPATH', dirname( __FILE__ ) . '/{{ $config.AbsPath }}' ); 28 29 // Include for settings managed by ddev. 30 $ddev_settings = dirname( __FILE__ ) . '/wp-config-ddev.php'; 31 if ( is_readable( $ddev_settings ) && ! defined( 'DB_USER' ) && getenv( 'IS_DDEV_PROJECT' ) == 'true' ) { 32 require_once( $ddev_settings ); 33 } 34 35 /** Include wp-settings.php */ 36 if ( file_exists( ABSPATH . '/wp-settings.php' ) ) { 37 require_once ABSPATH . '/wp-settings.php'; 38 }