新建
This commit is contained in:
9
application/extra/addons.php
Normal file
9
application/extra/addons.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'autoload' => false,
|
||||
'hooks' => [],
|
||||
'route' => [],
|
||||
'priority' => [],
|
||||
'domain' => '',
|
||||
];
|
||||
12
application/extra/queue.php
Normal file
12
application/extra/queue.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
return [
|
||||
'connector' => 'Redis', // Redis 驱动
|
||||
'expire' => 0, // 任务的过期时间,默认为60秒; 若要禁用,则设置为 null
|
||||
'default' => 'default', // 默认的队列名称
|
||||
'host' => '127.0.0.1', // redis 主机ip
|
||||
'port' => 6379, // redis 端口
|
||||
'password' => '', // redis 密码
|
||||
'select' => 0, // 使用哪一个 db,默认为 db0
|
||||
'timeout' => 0, // redis连接的超时时间
|
||||
'persistent' => false,
|
||||
];
|
||||
43
application/extra/site.php
Normal file
43
application/extra/site.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
return array (
|
||||
'name' => '超掌柜卡密',
|
||||
'beian' => '',
|
||||
'cdnurl' => '',
|
||||
'version' => '1.0.1',
|
||||
'timezone' => 'Asia/Shanghai',
|
||||
'forbiddenip' => '',
|
||||
'languages' =>
|
||||
array (
|
||||
'backend' => 'zh-cn',
|
||||
'frontend' => 'zh-cn',
|
||||
),
|
||||
'fixedpage' => 'dashboard',
|
||||
'categorytype' =>
|
||||
array (
|
||||
'default' => '默认',
|
||||
'page' => '单页',
|
||||
'article' => '文章',
|
||||
'test' => 'Test',
|
||||
),
|
||||
'configgroup' =>
|
||||
array (
|
||||
'basic' => '基础配置',
|
||||
'dictionary' => '字典配置',
|
||||
'card' => '卡配置',
|
||||
),
|
||||
'mail_type' => '1',
|
||||
'mail_smtp_host' => 'smtp.qq.com',
|
||||
'mail_smtp_port' => '465',
|
||||
'mail_smtp_user' => '10000',
|
||||
'mail_smtp_pass' => 'password',
|
||||
'mail_verify_type' => '2',
|
||||
'mail_from' => '10000@qq.com',
|
||||
'attachmentcategory' =>
|
||||
array (
|
||||
'category1' => '分类一',
|
||||
'category2' => '分类二',
|
||||
'custom' => '自定义',
|
||||
),
|
||||
'card_expire_time' => '8',
|
||||
);
|
||||
45
application/extra/upload.php
Normal file
45
application/extra/upload.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
//上传配置
|
||||
return [
|
||||
/**
|
||||
* 上传地址,默认是本地上传
|
||||
*/
|
||||
'uploadurl' => 'ajax/upload',
|
||||
/**
|
||||
* CDN地址
|
||||
*/
|
||||
'cdnurl' => '',
|
||||
/**
|
||||
* 文件保存格式
|
||||
*/
|
||||
'savekey' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
|
||||
/**
|
||||
* 最大可上传大小
|
||||
*/
|
||||
'maxsize' => '10mb',
|
||||
/**
|
||||
* 可上传的文件类型
|
||||
*/
|
||||
'mimetype' => 'jpg,png,bmp,jpeg,gif,webp,zip,rar,wav,mp4,mp3,webm',
|
||||
/**
|
||||
* 是否支持批量上传
|
||||
*/
|
||||
'multiple' => false,
|
||||
/**
|
||||
* 是否支持分片上传
|
||||
*/
|
||||
'chunking' => false,
|
||||
/**
|
||||
* 默认分片大小
|
||||
*/
|
||||
'chunksize' => 2097152,
|
||||
/**
|
||||
* 完整URL模式
|
||||
*/
|
||||
'fullmode' => false,
|
||||
/**
|
||||
* 缩略图样式
|
||||
*/
|
||||
'thumbstyle' => '',
|
||||
];
|
||||
Reference in New Issue
Block a user