true, //'show_error_msg' => true, 'charset' => 'UTF-8', 'lang_switch_on' => true, // 开启语言包功能 'lang_list' => ['zh-cn'], // 支持的语言列表 'data_auth_key' => 'sent', 'base_url' => BASE_PATH, 'url_route_on' => true, 'url_common_param' => false, 'template' => array( 'taglib_build_in' => 'cx,com\Cps', ), 'default_module' => 'novel', // 默认模块名 'exception_handle' => '\\app\\common\\exception\\Http', //'exception_tmpl' => BASE_PATH.'404.html', //'dispatch_success_tmpl' => APP_PATH . 'common/view/default/jump.html', //'dispatch_error_tmpl' => APP_PATH . 'common/view/default/jump.html', 'attachment_upload' => array( // 允许上传的文件MiMe类型 'mimes' => [], // 上传的文件大小限制 (0-不做限制) 'maxSize' => 0, // 允许上传的文件后缀 'exts' => [], // 子目录创建方式,[0]-函数名,[1]-参数,多个参数使用数组 'subName' => ['date', 'Ymd'], //保存根路径 'rootPath' => './uploads/attachment', // 保存路径 'savePath' => '', // 上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组 'saveName' => ['uniqid', ''], // 文件上传驱动e, 'driver' => 'Local', ), 'editor_upload' => array( // 允许上传的文件MiMe类型 'mimes' => [], // 上传的文件大小限制 (0-不做限制) 'maxSize' => 0, // 允许上传的文件后缀 'exts' => [], // 子目录创建方式,[0]-函数名,[1]-参数,多个参数使用数组 'subName' => ['date', 'Ymd'], //保存根路径 'rootPath' => './uploads/editor', // 保存路径 'savePath' => '', // 上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组 'saveName' => ['uniqid', ''], // 文件上传驱动e, 'driver' => 'Local', ), 'picture_upload' => array( // 允许上传的文件MiMe类型 'mimes' => [], // 上传的文件大小限制 (0-不做限制) 'maxSize' => 0, // 允许上传的文件后缀 'exts' => [], // 子目录创建方式,[0]-函数名,[1]-参数,多个参数使用数组 'subName' => ['date', 'Ymd'], //保存根路径 'rootPath' => './uploads/picture', // 保存路径 'savePath' => '', // 上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组 'saveName' => ['uniqid', ''], // 文件上传驱动e, 'driver' => 'Local', ), 'session' => array( 'prefix' => 'cms', 'type' => '', 'auto_start' => true, 'expire' => 86400 ), 'log' => array( // 日志记录方式,支持 file sae 'type' => 'file', //file:输出文件类型的日志 test:不输出日志 // 日志保存目录 'path' => LOG_PATH, ), 'app_trace' => false, // 页面Trace信息 'trace' => array( //支持Html,Console 设为false则不显示 'type' => 'Console', 'trace_tabs' => [ 'base' => '基本', 'file' => '文件', 'error|notice' => '错误', 'sql' => 'SQL', 'debug|log|info' => '调试', ] ), 'view_replace_str' => array( '__ADDONS__' => BASE_PATH . '/addons', '__PUBLIC__' => BASE_PATH . '/public', ), //域名部署路由功能 'url_domain_deploy' => true, 'html_cache_on' => false, // 开启静态缓存 'html_cache_time' => 7200, // 全局静态缓存有效期(秒) 'html_file_suffix' => '.html', // 设置静态缓存文件后缀 'html_cache_compile_type' => 'file', //缓存存储驱动 'html_cache_rules' => array( // 定义静态缓存规则 // // 定义格式1 数组方式 //'静态地址' => array('静态规则', '有效期', '附加规则'), //1.任意控制器的任意操作都适用 //'*'=>array('{$_SERVER.REQUEST_URI|md5}'), //2.任意控制器的md5操作 //'md5'=>array('{:module}/{:controller}/{:action}_{id|md5}'), //3.Static控制器的所有操作 'Index:' => array('{:module}/{:controller}/{:action}', 3), //第一个参数是构造的字符串,后面是缓存50秒 'read' => array('{id}', 60), //4.Hmtl控制器的md5操作 //'cartoon:'=>array('{:module}/{:controller}/{:action}_{id|md5}'), ), 'cache' => [ 'type' => 'redis', 'host' => '127.0.0.1' ], 'jwt' => [ 'key' => Env::get('JWT.KEY', '123456'), 'sign_type' => Env::get('JWT.SIGN_TYPE', 'HS256'), 'expiration_time' => (int)Env::get('JWT.EXPIRATION_TIME', 7200), 'cache_type' => Env::get('JWT.TYPE', 'redis'), 'pre_fix' => Env::get('JWT.PRE_FIX', 'quickapp_uid_') ] );