<?php
/** Enable W3 Total Cache */

//Begin Really Simple SSL Load balancing fix
if ((isset($_ENV["HTTPS"]) && ("on" == $_ENV["HTTPS"]))
	|| (isset($_SERVER["HTTP_X_FORWARDED_SSL"]) && (strpos($_SERVER["HTTP_X_FORWARDED_SSL"], "1") !== false))
	|| (isset($_SERVER["HTTP_X_FORWARDED_SSL"]) && (strpos($_SERVER["HTTP_X_FORWARDED_SSL"], "on") !== false))
	|| (isset($_SERVER["HTTP_CF_VISITOR"]) && (strpos($_SERVER["HTTP_CF_VISITOR"], "https") !== false))
	|| (isset($_SERVER["HTTP_CLOUDFRONT_FORWARDED_PROTO"]) && (strpos($_SERVER["HTTP_CLOUDFRONT_FORWARDED_PROTO"], "https") !== false))
	|| (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && (strpos($_SERVER["HTTP_X_FORWARDED_PROTO"], "https") !== false))
	|| (isset($_SERVER["HTTP_X_PROTO"]) && (strpos($_SERVER["HTTP_X_PROTO"], "SSL") !== false))
) {
	$_SERVER["HTTPS"] = "on";
}
//END Really Simple SSL

/**
 * 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
 */

define('JWT_AUTH_SECRET_KEY', 'peridistatomaticia');
define('JWT_AUTH_CORS_ENABLE', true);
define('JWT_AUTH_SECURE', false);

define( 'FORCE_SSL_ADMIN', true );
define( 'FORCE_SSL_LOGIN', true );

define('WP_HOME','https://preprod.mundogames.com');
define('WP_SITEURL','https://preprod.mundogames.com');

define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');


// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wp_new_mundogames');
//define('DB_NAME','wp_test_indices_mundogames');

/** MySQL database username */
define('DB_USER', 'azureuser');

/** MySQL database password */
define('DB_PASSWORD', 'ZSKbX5dc9r59S!uf');

/** MySQL hostname */
//define('DB_HOST', 'wordpress-produccion.cwpmynkts2pk.sa-east-1.rds.amazonaws.com');
//define('DB_HOST','wordpress-produccion-salone4.coycnhmyso7h.sa-east-1.rds.amazonaws.com');
//define('DB_HOST', 'ldatabase2.mysql.database.azure.com');
define('DB_HOST', 'db-wp-prod-brseast-02.mysql.database.azure.com');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
 * 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',         'b%+QuRjp778&brC.YE(9a{j=2~mM(E#q,77Si^-<|^bE>7}Q#Vg hlF#~a!Y%NMw');
define('SECURE_AUTH_KEY',  'LBd8%eDnPiOY{gtLw}*~<[U2eFS;`5a#sP:P&[byZ-l_]aB(>UXV(#XyeLMIj)?,');
define('LOGGED_IN_KEY',    'Pw+VR8%}L<Qf5P(jO`;}~dyj?5:+$EB)N 03oE_P+_ %{r(u3`P)<nLKc)k.V$R}');
define('NONCE_KEY',        'fA&aGcv^#>r-dv]p{^f{M`z{s+b5hMVSZ3CH~-~wq<:Ek3M7fv8&doOP]3?TpiPV');
define('AUTH_SALT',        'YNZJS/r=c*K`%DoWD`+FOMcT<$8=4$<xX4E#*`56t;i:$P eC}(k`pE>+,Cu|Azy');
define('SECURE_AUTH_SALT', 'F7#f#hshqLJc#IdC{R{,(jiHDt!BL_3-=~+L%IQ^J$oiI_OLV<X,D?o7X5!X>iss');
define('LOGGED_IN_SALT',   'fzlA=$` 0Z4kcef9]}YC`o,HKe83qDduwmIYrX^i8Rb*r5BmR:8d1fREkhqwV-TC');
define('NONCE_SALT',       '2D1poMG,.f~H<t.2<O?8H*303[_^k?{)xc?.NV:.IxKz&#iGh:?KOxQkSJ5*2lJh');

/**#@-*/



/**
 * 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  = 'mg_';

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the Codex.
 *
 * @link https://codex.wordpress.org/Debugging_in_WordPress
 */
//define('WP_DEBUG', false);
define( 'WP_DEBUG', false );
define( 'SAVEQUERIES', false );

/* That's all, stop editing! Happy blogging. */

define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL);

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
