mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
76 lines
1.3 KiB
PHP
76 lines
1.3 KiB
PHP
<?php
|
|
|
|
$_SERVER["HTTP_HOST"] = YAAMP_SITE_URL;
|
|
|
|
// required in PHP 5.4
|
|
date_default_timezone_set('Europe/Paris');
|
|
|
|
return array(
|
|
'name'=>YAAMP_SITE_URL,
|
|
|
|
'basePath'=>YAAMP_HTDOCS."/yaamp",
|
|
|
|
'preload'=>array('log'),
|
|
|
|
// autoloading model and component classes
|
|
'import'=>array(
|
|
'application.components.*',
|
|
'application.commands.*',
|
|
'application.models.*',
|
|
'application.extensions.*',
|
|
),
|
|
|
|
'components'=>array(
|
|
|
|
'request' => array(
|
|
'hostInfo' => 'http://'.$_SERVER["HTTP_HOST"],
|
|
'baseUrl' => '',
|
|
),
|
|
|
|
'assetManager'=>array(
|
|
'basePath'=>YAAMP_HTDOCS."/assets"
|
|
),
|
|
|
|
'log'=>array(
|
|
'class'=>'CLogRouter',
|
|
'routes'=>array(
|
|
array(
|
|
'class'=>'CFileLogRoute',
|
|
'levels'=>'error, warning',
|
|
'levels'=>'debug, trace, error, warning',
|
|
),
|
|
// array(
|
|
// 'class'=>'CProfileLogRoute',
|
|
// 'report'=>'summary',
|
|
// ),
|
|
),
|
|
),
|
|
|
|
'db'=>array(
|
|
'class'=>'CDbConnection',
|
|
'connectionString'=>"mysql:host=".YAAMP_DBHOST.";dbname=".YAAMP_DBNAME,
|
|
|
|
'username'=>YAAMP_DBUSER,
|
|
'password'=>YAAMP_DBPASSWORD,
|
|
|
|
'enableProfiling'=>false,
|
|
'charset'=>'utf8',
|
|
'schemaCachingDuration'=>3600,
|
|
),
|
|
|
|
'cache'=>array(
|
|
'class'=>'CMemCache',
|
|
'keyPrefix'=>'',
|
|
'servers'=>array(
|
|
array(
|
|
'host'=>'127.0.0.1',
|
|
'port'=> 11211,
|
|
'weight'=> 60,
|
|
),
|
|
),
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|