<?php

define('DEBUG', true);
define('ENV', ENV_NEW);

$GLOBALS['FIRE_BASE_PRI_KEY'] = 'X_hdaICpObuXWiqBRIOjc2f1KWjxlJEKg6bQY5sMTkc';

$GLOBALS['verifyPath'] = '/data/webapps/ws.mee.chat/verify.js';
$GLOBALS['tronVerifyPath'] = '/data/webapps/ws.mee.chat/verifyTron.js';
$GLOBALS['publicKeyAdmin'] = 'EOS7T2QLXGNnpkSdqAWNivGgXkjWjjGSvAoAvgQShhwpTa7dUvWfJ';

$GLOBALS['walletName'] = 'meechat';
$path = '/data/webapps/dice_conf';
$GLOBALS['walletPwd'] = trim(file_get_contents("{$path}/{$GLOBALS['walletName']}_pwd.txt"));

$GLOBALS['eosProtocol'] = 'https';
$GLOBALS['eosHost'] = 'proxy.eosnode.tools';
$GLOBALS['eosPort'] = 443;

if ($GLOBALS['eosProtocol'] == 'https' && $GLOBALS['eosPort'] == 443) {
    $GLOBALS['eosUrl'] = "{$GLOBALS['eosProtocol']}://{$GLOBALS['eosHost']}/";
} else {
    $GLOBALS['eosUrl'] = "{$GLOBALS['eosProtocol']}://{$GLOBALS['eosHost']}:{$GLOBALS['eosPort']}/";
}

define("CALL_LOG_KEY", "logstash:redis");
//define("URL_CDN", "//w5.dwstatic.com/cdn/{$_SERVER['HTTP_HOST']}/");
define("URL_CDN", '/');

$GLOBALS['dbInfo']['dw_chat'] = array (
    'dbHost' => 'eos-mysql.cg0bhowjab41.ap-northeast-1.rds.amazonaws.com',
    'dbPort' => '6301',
    'dbName' => 'dw_chat',
    'dbPass' => 'wanheblcgame',
    'dbType' => 'mysqli',
    'dbUser' => 'blcgame_rw',
    'enable' => '1',
);

$GLOBALS['dbInfo']['dw_eos'] = array (
    'dbHost' => 'eos-mysql.cg0bhowjab41.ap-northeast-1.rds.amazonaws.com',
    'dbPort' => '6301',
    'dbName' => 'dw_eos',
    'dbPass' => 'wanheblcgame',
    'dbType' => 'mysqli',
    'dbUser' => 'blcgame_rw',
    'enable' => '1',
);


$GLOBALS['redisInfo']['dw_chat'] = array (
    'host' => 'redis3.6qgi3s.0001.apne1.cache.amazonaws.com',
    'port' => '6379',
);

$GLOBALS['redisInfo']['logstash_redis'] = array (
    'host' => 'redis1.6qgi3s.0001.apne1.cache.amazonaws.com',
    'port' => '6380',
    'connect_timeout' => '1',
);

//webpush
define('MESSAGING_PRIVATE_KEY', 'VaWG-r7hYLlWApB3vwGj0Pp4KhzVx5NibCVWSiOjm8A');
define('MESSAGING_PUBLIC_KEY', 'BNan2ZkZRV6skCmS9rAJx5jb0eZgjo1-hmil3ZkhJs20yDOpBpEFaV9p1mag6KfBItZdzCT9-8pt15GSIIGV5DE');

define('URL_SELF', '//mee.chat');
//end of script
