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'] : '0.0.0.0'; $host = 'http://'.$local . '/'; $upload = $host . 'upload/'; $uploadcdn = $host . 'upload/data/'; $config['host'] = array ( 'upload'=> $upload . 'upload/?save', 'uploadRes' => $uploadcdn . 'upload/', 'project' => array ( /* 'passport' => array ( 'path' => $host. 'user/passport/?', ), */ ), ); return $config;