'donzo.ru', 'site.static' => 'https://donzo.ru', 'site.title' => 'donzo.ru', // название сайта, для подобных случаев: "Я уже зарегистрирован на {Example.com}" # Database 'db.type' => 'mysql', // варианты: pgsql, mysql 'db.host' => 'localhost', // варианты: localhost, ... 'db.port' => '3306', // варианты: pgsql - 5432, mysql - 3306 'db.name' => 'donzo_ru_db', 'db.user' => 'donzo_ru', 'db.pass' => 'dQ8jVSEe_zfv0e', 'db.charset' => 'utf8mb4', 'db.prefix' => 'bff_', # Cache 'cache' => [ 'prefix' => 'donzo.ru', 'default' => 'file', 'stores' => [ 'file' => [ 'driver' => 'file', 'path' => '/files/cache/file/', ], 'apc' => [ 'driver' => 'apc', ], ], ], # Auth 'auth' => [ 'defaults' => [ 'guard' => 'web', ], 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], ], 'providers' => [ 'users' => [ 'driver' => 'eloquent', ], ], ], # Session 'session' => [ 'driver' => 'file', 'lifetime' => 120, # minutes 'expire_on_close' => false, 'encrypt' => false, 'files' => '/files/sessions/', 'connection' => null, 'table' => 'sessions', 'store' => null, # cache store (in case of drivers: apc, memcached, redis, dynamodb) 'lottery' => [2, 100], 'cookie' => 'session', 'path' => '/', 'domain' => null, 'secure' => null, 'same_site' => 'lax', # "lax", "strict", "none", null 'admin' => [ 'path' => '/admin/', 'cookie' => 'sessiona', ], ], # Hashing 'hashing' => [ 'driver' => 'bcrypt', 'bcrypt' => [ 'rounds' => 10, ], 'argon' => [ 'memory' => 1024, 'threads' => 2, 'time' => 2, ], ], # Encryption 'crypt' => [ 'key' => 'base64:PRbjrwPUDHrRchSE9S3vs9359OnkxoaxEcj/ro8KNJg=', ], # Sphinx 'sphinx' => [ 'enabled' => true, 'host' => '127.0.0.1', 'port' => 9306, 'path' => '/var/lib/sphinx/', 'version' => '3.3.1', 'prefix' => '', ], # Debug (для разработчика) 'debug' => false, // варианты:true|false - включить debug-режим (не рекомендуется) # Хуки 'hooks' => [ // ], ]; if (file_exists(__DIR__.DIRECTORY_SEPARATOR.'sys-local.php')) { $local = include 'sys-local.php'; return array_merge($config, $local); } return $config;