github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/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  /* Add any custom values between this line and the "stop editing" line. */
    27  
    28  
    29  
    30  /* That's all, stop editing! Happy publishing. */
    31  
    32  /** Absolute path to the WordPress directory. */
    33  defined( 'ABSPATH' ) || define( 'ABSPATH', dirname( __FILE__ ) . '/{{ $config.AbsPath }}' );
    34  
    35  // Include for settings managed by ddev.
    36  $ddev_settings = dirname( __FILE__ ) . '/wp-config-ddev.php';
    37  if ( ! defined( 'DB_USER' ) && getenv( 'IS_DDEV_PROJECT' ) == 'true' && is_readable( $ddev_settings ) ) {
    38  	require_once( $ddev_settings );
    39  }
    40  
    41  /** Include wp-settings.php */
    42  if ( file_exists( ABSPATH . '/wp-settings.php' ) ) {
    43  	require_once ABSPATH . '/wp-settings.php';
    44  }