<?php
return [
    'settings' => [
        'displayErrorDetails' => false, // set to false in production
        'addContentLengthHeader' => false, // Allow the web server to send the content-length header

        // Renderer settings
        'renderer' => [
            'template_path' => __DIR__ . '/../templates/',
        ],

        // Monolog settings
        'logger' => [
            'name' => 'admin',
            'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/admin.log',
            'level' => \Monolog\Logger::DEBUG,
            'type' => 'rotating_file',
            'max_files' => 10
        ],

        'redis' => [
            // 'host' => 'inno-redis.redis.cache.windows.net', //azure
            'host' => 'redis-ce8a748b-180a-4f5c-bb93-ae128c65325c.ap-southeast-1.dcs.myhuaweicloud.com', //huawei
            'port' => 6379,
            'auth' => 'ZOFFKfu3FMC3CJPOE7RMqsDTleAlDL2vaAzCaPzM6Eg=',
            'database' => 4
        ],

        'mssql' => [
            'wallet' => [
                // 'host' => 'live-log-hk-int-sql01.public.7b14fbc571ad.database.windows.net', //azure
                'host' => '172.16.2.82', //huawei
                'port' => '1433',
                'username' => 'ToolUser',
                'password' => 'vNiBuzVG8IN5yrVoxQeTrUCHnisoAiRq',
                'read_username' => 'ReadToolUser',
                'read_password' => 'f0AO8JiuAOlTEbQw8ZxdQ9PeM5BVP0Ms',
                'dbname' => 'INNO-WALLET-001'
            ],
            'account' => [
                // 'host' => 'live-log-hk-int-sql01.public.7b14fbc571ad.database.windows.net', //azure
                'host' => '172.16.2.82', //huawei
                'port' => '1433',
                'username' => 'ToolUser',
                'password' => 'vNiBuzVG8IN5yrVoxQeTrUCHnisoAiRq',
                'read_username' => 'ReadToolUser',
                'read_password' => 'f0AO8JiuAOlTEbQw8ZxdQ9PeM5BVP0Ms',
                'dbname' => 'INNO-PLATFORM-ACCOUNT-001'
            ],
            'point' => [
                1 => [
                    // 'host' => 'live-log-hk-int-sql01.public.7b14fbc571ad.database.windows.net', //azure
                    'host' => '172.16.2.82', //huawei
                    'port' => '1433',
                    'username' => 'ToolUser',
                    'password' => '',   // 사용안함
                    'read_username' => 'ReadToolUser',
                    'read_password' => 'f0AO8JiuAOlTEbQw8ZxdQ9PeM5BVP0Ms',
                    'dbname' => 'INNO-PLATFORM-POINT-001'
                ],
            ],
            'log' => [
                // 'host' => 'live-log-hk-int-sql01.public.7b14fbc571ad.database.windows.net', //azure
                'host' => '172.16.2.82', //huawei
                'port' => '1433',
                'username' => 'ToolUser',
                'password' => 'vNiBuzVG8IN5yrVoxQeTrUCHnisoAiRq',
                'read_username' => 'ReadToolUser',
                'read_password' => 'f0AO8JiuAOlTEbQw8ZxdQ9PeM5BVP0Ms',
                'dbname' => 'INNO-LOG-001'
            ],
            'onchain' => [
                // 'host' => 'live-log-hk-int-sql01.public.7b14fbc571ad.database.windows.net', //azure
                'host' => '172.16.2.82', //huawei
                'port' => '1433',
                'username' => 'ToolUser',
                'password' => 'vNiBuzVG8IN5yrVoxQeTrUCHnisoAiRq',
                'read_username' => 'ReadToolUser',
                'read_password' => 'f0AO8JiuAOlTEbQw8ZxdQ9PeM5BVP0Ms',
                'dbname' => 'INNO-ONCHAIN-001'
            ],
        ],

        //권한 체크 여부
        'auth' => [
            'checkFlag' => true,
        ],

        // cdn
        'cdn' => [
            'default' => 'https://file.mir4global.com',
            'maintenance' => 'https://file.mir4global.com',
            // 'style' => 'style--dev',
            //'style' => 'style--review',
            // 'style' => 'style--beta',
            'style' => 'style--live',
        ], 

        'serverhost' => [
            'market' => [
                // 'in' => 'http://10.1.7.13:51070/m1.0', //azure
                'in' => 'http://172.16.2.31:51070/m1.0', //huawei-market
                'ex' => 'https://api-inno-market.lumiwavelab.com:51071/v1.0',
            ],
            'dashboard' => [
                // 'in' => 'http://10.1.3.20:51030/m1.0',  //azure
                'in' => 'http://172.16.2.8:51030/m1.0',  //huawei
                'ex' => 'https://api-inno-dashboard.lumiwavelab.com:51031/v1.0',
            ],
            'gameserver' => [
                // 'in' => 'http://10.1.3.20:51100/m1.0',  //azure
                'in' => 'http://172.16.2.8:51100/m1.0',  //huawei
                'ex' => 'https://api-inno-market.lumiwavelab.com:51101/v1.0',
            ],
            'statusserver' => [
                // 'in' => 'http://10.1.6.21:51060/m1.0',  //azure
                'in' => 'http://172.16.2.12:51060/m1.0',  //huawei-log
                'ex' => 'https://api-inno-status.lumiwavelab.com:51061/v1.0',
            ],
            'onchaingame' => [
                // 'in' => 'http://10.1.7.13:51150/m1.0',  //azure
                'in' => 'http://172.16.2.31:51150/m1.0',  //huawei-market
                'ex' => 'https://api-inno-market.lumiwavelab.com:51151/v1.0',
            ],
            'bridgeserver' => [
                // 'in' => 'http://10.1.3.20:51170/m1.0',  //azure
                'in' => 'http://172.16.2.8:51170/m1.0',  //huawei-backend
                'ex' => 'https://api-inno-dashboard.lumiwavelab.com:51171/v1.0',
            ],
            'leaderboard' => [
                'in' => 'http://10.1.3.20:51160/m1.0',
                'ex' => 'https://api-inno-dashboard.lumiwavelab.com:51161/v1.0',
            ],
        ],

        'scanuri' => [
            'coin' => 'https://etherscan.io/',
            'nft' => 'https://polygonscan.com/',
            'sui' => 'https://suiscan.xyz/mainnet',
        ],

        'visionuri' => [
            'sui' => 'https://suivision.xyz/',
        ],

        'exploreruri' => [
            'pingpub' => 'https://ping.pub/',
        ],
    ],
];
