| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <?php# 数据库配置$config['database'] = array(	# 默认数据库配置	'default' => array	(		'type' => 'pdo',		'host' => array		(			'read' => 'web-mysql:3306',			'update' => 'web-mysql:3306',		),		'database' => 'wonderful',		'username' => 'root',		'password' => '123456',		'charset' => 'utf8',	),);$config['debug'] = array(	'log' => array('type' => 'file'),);$local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '192.168.33.10';$host = 'http://'.$local . '/';$upload = $host . 'upload/';$uploadcdn = $host . 'upload/data/';$config['host'] = array(    'upload'=> $upload . 'upload/?save',    'uploadRes'     => $uploadcdn . 'upload/',    'project' => array    (        'upload' => array        (            'path' => $host. 'upload/upload/?',        ),    ),);return $config;
 |