<?php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME',     'db_dom626255');

/** MySQL database username */
define('DB_USER',     'db_dom626255');

/** MySQL database password */
define('DB_PASSWORD', 'VKlq2qSHyltQHk2sjVWVzar3G0oPZ3mUzy8LTvVl');

/** MySQL hostname */
define('DB_HOST', '10.204.130.241');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

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


    /** Maske sure multisite is off **/
    if ( defined('MULTISITE') AND MULTISITE ){
        die('You do not have a multisite enabled account, please contact support.');
    }



// ** Redis defaults to allow seamless install of redis-cache(-pro) in Pagely environment ** //
define('WP_REDIS_DIR', __DIR__. '/../hosting-plugins/redis-cache-pro');
$WP_REDIS_CONFIG = array(
    'token'             => 'bf2ad6a2345b879739ae2b450dffcca0e22d1865cabad44e63d7c53ba06b',
    'async_flush'       => true,
    'compression'       => 'zstd',
    'maxttl'            => 3600 * 24 * 7, // 7 days
    'persistent'        => false,
    'serializer'        => 'igbinary',
    'split_alloptions'  =>  false,
    'timeout'           => '.5',
    'database'          => 1,
    'prefix'            => "db_dom626255",
    'strict'            => false,
    'updates'           => false,
    'analytics'         => ['enabled' => false],
    'debug'             => (bool)getenv('WP_REDIS_CONFIG_DEBUG'),
);

if (!getenv('SSH_CLIENT')) {
    $WP_REDIS_CONFIG['path'] = '/alloc/tmp/redis.sock';
}

if (!isset($WP_REDIS_CONFIG['path'])) {
    $WP_REDIS_CONFIG['host'] = 'app-626255-redis.sites.service.nomad';
    $WP_REDIS_CONFIG['port'] = '6380';
}

$WP_REDIS_CONFIG['username'] = 'dom_626255_session_202510291234';
$WP_REDIS_CONFIG['password'] = 'ee27dd81-a590-4f6f-9d50-4f2880acbd6a';

foreach(['/user/redis-config.php', '/../user/redis-config.php', '/../../../user/redis-config.php'] as $path)
{
    if (file_exists($path))
    {
        include $path;
        break;
    }
}

//  Compatability with old redis-cache vars
if (defined('WP_REDIS_SERVER'))
    $WP_REDIS_CONFIG['host'] = WP_REDIS_SERVER;

if (!defined('WP_REDIS_PORT'))
    define('WP_REDIS_PORT', '6380');
else
    $WP_REDIS_CONFIG['port'] = WP_REDIS_PORT;

if (!defined('WP_CACHE_KEY_SALT'))
    define('WP_CACHE_KEY_SALT', 'db_dom626255');
else
    $WP_REDIS_CONFIG['prefix'] = WP_CACHE_KEY_SALT;

//  Turn our array into a constant
define('WP_REDIS_CONFIG', $WP_REDIS_CONFIG);
unset($WP_REDIS_CONFIG);

if (file_exists('/local/rendered/gateway.php')) { include '/local/rendered/gateway.php'; }
