<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */

// ** MySQL settings ** //
/** The name of the database for WordPress */
define( 'DB_NAME', '<%= @db_name || node['wp']['db']['name'] %>' );

/** MySQL database username */
define( 'DB_USER', '<%= @db_user || node['wp']['db']['user'] %>' );

/** MySQL database password */
define( 'DB_PASSWORD', '<%= @db_password || node['wp']['db']['password'] %>' );

/** MySQL hostname */
define( 'DB_HOST', '<%= @db_host || node['wp']['db']['host'] %>' );

/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', '<%= node['wp']['db']['charset'] %>' );

/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );

/** Check for https in reverse proxy */
define('FORCE_SSL_ADMIN', true);
// in some setups HTTP_X_FORWARDED_PROTO might contain 
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
       $_SERVER['HTTPS']='on';

/**
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         'RNkS%O3U1-RtB[6U`*|^xZmFDE(n7>)Hc!)+G1#4Mv>W?|[-Qk_-hky9-T4LD*@r');
define('SECURE_AUTH_KEY',  '}L7+-0N*qn.iC#J(Al3ubodjW_p4EV|Iur=MZT%RS6Mz{7zHfLkWvhNwb-@DqHuc');
define('LOGGED_IN_KEY',    'nfW4CN&IY^7fz=j*RlxikK^EsMe&_LOZH1~GFyB%r)<feQZUc+dp]htFD+B(+x%T');
define('NONCE_KEY',        '5+:qA Uty:(85/T3/h~@lIq7V/y&56l]9WXJ-_|V:WLGT=.CFYo}?n_W~bk9T5Iv');
define('AUTH_SALT',        'RRC@,@)=YkQ(+`U0ZzAKkX+1p@RI]l]E7k*~.P[>& :rEHE5o1Vm?,PY}hAc`5YD');
define('SECURE_AUTH_SALT', '-+Bo}$*gR4J$w[6|KMPVtrz.%/roW_t6SYbkXvH[~xLI)vZ=+mfF/9=DB|Y}&UzV');
define('LOGGED_IN_SALT',   'Xe+kzY)N`WcZ1p/Rr)>sh2wM*I.hl<jz^OQ/|qu{asj a-)Bt-+3In>l_Dkn x*;');
define('NONCE_SALT',       'A}[36|%OIS:s;P:P)] _~}89W32rHC>xE0@g-<wirp#Y}m!&W(q=O(#@ie1q5:aE');

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */
$table_prefix = '<%= node['wp']['db']['table_prefix'] %>';

/* 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. */
require_once ABSPATH . '<%= node['wp']['settings_file'] %>';
