123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- # 本配置文件会根据部署位置的不同而修改,此处请自行修改
- $local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost';
- # 当前项目的主域名
- $host = 'http://'.$local.'/mazephp/';
- # 定义assets的域名
- $assets_host = MAZE_PROJECT_HOST . 'assets/';
- # 跨域设置
- header('Access-Control-Allow-Origin:*');
- //header('Access-Control-Allow-Origin:http://'.$local);
- return array
- (
- # 跟域名
- 'base' => MAZE_PROJECT_HOST,
- # cookie 域名
- 'cookie' => '',
-
- # assets 核心库访问地址 一般用不到,如果想把所有资源都放到这里,就要启用
- 'core' => $host . 'assets/lib/',
-
- # assets网络路径
- 'assets' => $assets_host,
- 'css' => $assets_host . 'css/',
- 'js' => $assets_host . 'js/',
- 'img' => $assets_host . 'img/',
-
- # 合并之后的网络路径,填写之后自动合并资源,不填写则不合并
- //'merge' => $host . 'mazephp/data/assets/',
-
- # image图库的上传路径的域名(不带action)
- 'upload'=> $host . 'project/yuwang/image/?upload',
- # image图库的访问域名
- 'image' => $host . 'mazephp/data/upload/',
- /*
- # image图库的上传路径的域名(不带action)
- 'upload' => 'http://image.mazephp.com.cn/upload',
- # image图库的访问域名
- 'image' => 'http://img1.mazephp.com.cn/',
- */
-
- );
|