123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?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'] : '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;
|