[ // 数据库连接 'dsn' => 'mysql:host=localhost;dbname=aikang_test', // 数据库用户名 'username' => 'root', // 数据库密码 'password' => '123456', // 数据库字符集 'charset' => 'utf8', // 数据表前缀 'tablePrefix' => 'AR_', ], // 日志库 'dbLog' => [ 'dsn' => 'mongodb://39.104.27.110:27017/aikang_log_db', 'options' => [ "username" => "aikang_bonus_log_user", "password" => "mongo@db.useron2020" ], ], // 奖金结算专属库(为不占用主库资源,不影响会员正常业务,该库专门用于奖金结算,可单独架设,需与主库做主从同步) 'dbCalc' => [ 'dsn' => 'mysql:host=localhost;dbname=aikang_test', 'username' => 'root', 'password' => '123456', 'charset' => 'utf8', 'tablePrefix' => 'AR_', ], // 移动点位时专用的点位备份库(可用来查看各个时期的会员点位情况) 'dbNetPoint' => [ 'dsn' => 'mysql:host=localhost;dbname=aikang_test', 'username' => 'root', 'password' => '123456', 'charset' => 'utf8', 'tablePrefix' => 'AR_', ], // 系统从库 'slavesDb' => [ 'slaveConfig' => [ 'username' => 'root', 'password' => '123456', 'charset' => 'utf8', 'tablePrefix' => 'AR_', 'attributes' => [ PDO::ATTR_TIMEOUT => 10, // 从库超时切换间隔时间 ], ], 'slaves' => [ ['dsn' => 'mysql:host=localhost;dbname=aikang_test'], // 其他奖金结算系统的从库从下面继续添加配置 ], ], // Token专用 Redis 库 'tokenRedis' => [ // 服务器 'hostname' => '39.104.27.110', // 端口 'port' => 6379, // 密码 'password' => 'hxds_1319', // 库索引 'database' => 13, ], // 缓存专用 Redis 库 'cacheRedis' => [ 'hostname' => '39.104.27.110', 'port' => 6379, 'password' => 'hxds_1319', 'database' => 14, ], // 其他数据 Redis 库 'otherRedis' => [ 'hostname' => '39.104.27.110', 'port' => 6379, 'password' => 'hxds_1319', 'database' => 15, ], // 远程静态上传服务器地址 @todo 明哥提供 'remoteUploadHost' => 'http://ar.upload.ming', // swoole异步服务器及端口 'swooleTimerConfig' => [ 'host' => '127.0.0.1', 'port' => '9513', ], 'swooleClientConfig' => [ 'host' => '127.0.0.1', 'port' => '9513', ], // swoole奖金服务器及端口 'swooleBonusClientConfig' => [ 'host' => '127.0.0.1', 'port' => '9513', ], ];