-
-
Save rfay/906e28cb6b29631847b1a7bcd3e165a6 to your computer and use it in GitHub Desktop.
Generated wp-config and wp-config-ddev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
#ddev-generated: Automatically generated WordPress wp-config.php file. | |
ddev manages this file and may delete or overwrite the file unless this comment is removed. | |
*/ | |
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
if (!defined('DB_NAME')) | |
define( 'DB_NAME', 'db' ); | |
/** MySQL database username */ | |
if (!defined('DB_USER')) | |
define( 'DB_USER', 'db' ); | |
/** MySQL database password */ | |
if (!defined('DB_PASSWORD')) | |
define( 'DB_PASSWORD', 'db' ); | |
/** MySQL hostname */ | |
if (!defined('DB_HOST')) | |
define( 'DB_HOST', 'db' ); | |
/** site URL */ | |
if ( !defined('WP_HOME') ) | |
define('WP_HOME', 'http://wordpress.ddev.local'); | |
/** WP_ENV */ | |
define('WP_ENV', getenv('DDEV_ENV_NAME') ? getenv('DDEV_ENV_NAME') : 'production'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
#ddev-generated: Automatically generated WordPress wp-config.php file. | |
ddev manages this file and may delete or overwrite the file unless this comment is removed. | |
*/ | |
// Include local settings if it exists. | |
$docroot = getenv('NGINX_DOCROOT'); | |
if (file_exists($docroot . '/wp-config-ddev.php')) { | |
require_once $docroot . '/wp-config-ddev.php'; | |
} | |
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
if (!defined('DB_NAME')) | |
define( 'DB_NAME', 'db' ); | |
/** MySQL database username */ | |
if (!defined('DB_USER')) | |
define( 'DB_USER', 'db' ); | |
/** MySQL database password */ | |
if (!defined('DB_PASSWORD')) | |
define( 'DB_PASSWORD', 'db' ); | |
/** MySQL hostname */ | |
if (!defined('DB_HOST')) | |
define( 'DB_HOST', 'db' ); | |
/** Database Charset to use in creating database tables. */ | |
define( 'DB_CHARSET', 'utf8mb4' ); | |
/** The Database Collate type. */ | |
define( 'DB_COLLATE', '' ); | |
/** | |
* WordPress Database Table prefix. | |
*/ | |
if(!isset($table_prefix)) | |
$table_prefix = 'wp_'; | |
/** | |
* For developers: WordPress debugging mode. | |
*/ | |
if (!defined('WP_DEBUG')) | |
define('WP_DEBUG', false); | |
/**#@+ | |
* Authentication Unique Keys and Salts. | |
*/ | |
if ( !defined('AUTH_KEY') ) | |
define( 'AUTH_KEY', 'iqgpUWFhrMcbduVqYPXzLnOVrwdAsqaZmVncHQzOTdOdmMJFYAlSavUwwsBXlSis' ); | |
if ( !defined('SECURE_AUTH_KEY') ) | |
define( 'SECURE_AUTH_KEY', 'iMFBnRSBUaswcGaAxVeTlAEbYCoHQPhofDnuJqfOvudegvwhXphnWMHXdyLFCNKX' ); | |
if ( !defined('LOGGED_IN_KEY') ) | |
define( 'LOGGED_IN_KEY', 'satjbDJZtuoEmehEycrYIMAxEGAFtRRKVXkbWIMFxhZgUJBDXcbSMRlZYhxhWisH' ); | |
if ( !defined('NONCE_KEY') ) | |
define( 'NONCE_KEY', 'oZVHtSCVhkjuvyiuLghZvNvCZrInSTrooDMbYGypbELOoPMwzIwwwfYWDeLopEyc' ); | |
if ( !defined('AUTH_SALT') ) | |
define( 'AUTH_SALT', 'SmNPNiABTLJrxcRZvYFvpVcKpEHNDOloXJvnwjPanvpzaAzLZfgbajchQnYDeiPP' ); | |
if ( !defined('SECURE_AUTH_SALT') ) | |
define( 'SECURE_AUTH_SALT', 'YDZEKxyTtcKTizpPmEyElPFHLtdxSTnXohpFZMUcCCHPWJBgTVySNwDNouqAhTHm' ); | |
if ( !defined('LOGGED_IN_SALT') ) | |
define( 'LOGGED_IN_SALT', 'IpnhGfiaHDqJPDlnUzHbFAoBeYLPHCEVlhDYJYvNHvKLoFYJWYPyHwODsQWvcpiF' ); | |
if ( !defined('NONCE_SALT') ) | |
define( 'NONCE_SALT', 'wTMnlMmvWkSkIIOcheVIPgLVoKYrYsLXDttNFkZDiaKjkAakdLjOyyJsquDhFFhF' ); | |
/** site URL */ | |
if ( !defined('WP_HOME') ) | |
define('WP_HOME', 'http://wordpress.ddev.local'); | |
/** WP_ENV */ | |
define('WP_ENV', getenv('DDEV_ENV_NAME') ? getenv('DDEV_ENV_NAME') : 'production'); | |
/* That's all, stop editing! Happy blogging. */ | |
/** Absolute path to the WordPress directory. */ | |
if ( !defined('ABSPATH') ) | |
define('ABSPATH', dirname(__FILE__) . '/'); | |
/** | |
Sets up WordPress vars and included files. | |
wp-settings.php is typically included in wp-config.php. This check ensures it is not | |
included again if this file is written to wp-config-local.php. | |
*/ | |
if (basename(__FILE__) == "wp-config.php") { | |
require_once(ABSPATH . '/wp-settings.php'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment