仓库初始化
This commit is contained in:
34
application/extra/addons.php
Normal file
34
application/extra/addons.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'autoload' => false,
|
||||
'hooks' => [
|
||||
'app_init' => [
|
||||
'crontab',
|
||||
],
|
||||
'epay_config_init' => [
|
||||
'epay',
|
||||
],
|
||||
'addon_action_begin' => [
|
||||
'epay',
|
||||
],
|
||||
'action_begin' => [
|
||||
'epay',
|
||||
],
|
||||
'config_init' => [
|
||||
'markdown',
|
||||
],
|
||||
'sms_send' => [
|
||||
'smsbao',
|
||||
],
|
||||
'sms_notice' => [
|
||||
'smsbao',
|
||||
],
|
||||
'sms_check' => [
|
||||
'smsbao',
|
||||
],
|
||||
],
|
||||
'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,
|
||||
];
|
||||
45
application/extra/site.php
Normal file
45
application/extra/site.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
return array (
|
||||
'name' => '羽声(Vespa)',
|
||||
'beian' => '',
|
||||
'cdnurl' => '',
|
||||
'version' => '1.0.3',
|
||||
'timezone' => 'Asia/Shanghai',
|
||||
'forbiddenip' => '',
|
||||
'languages' =>
|
||||
array (
|
||||
'backend' => 'zh-cn',
|
||||
'frontend' => 'zh-cn',
|
||||
'api' => 'zh-cn',
|
||||
),
|
||||
'fixedpage' => 'dashboard',
|
||||
'categorytype' =>
|
||||
array (
|
||||
'default' => 'Default',
|
||||
'page' => 'Page',
|
||||
'article' => 'Article',
|
||||
'test' => 'Test',
|
||||
),
|
||||
'configgroup' =>
|
||||
array (
|
||||
'basic' => 'Basic',
|
||||
'email' => 'Email',
|
||||
'dictionary' => 'Dictionary',
|
||||
'user' => 'User',
|
||||
'example' => 'Example',
|
||||
),
|
||||
'mail_type' => '1',
|
||||
'mail_smtp_host' => 'smtp.qq.com',
|
||||
'mail_smtp_port' => '465',
|
||||
'mail_smtp_user' => '',
|
||||
'mail_smtp_pass' => '',
|
||||
'mail_verify_type' => '2',
|
||||
'mail_from' => '',
|
||||
'attachmentcategory' =>
|
||||
array (
|
||||
'category1' => 'Category1',
|
||||
'category2' => 'Category2',
|
||||
'custom' => 'Custom',
|
||||
),
|
||||
);
|
||||
50
application/extra/upload.php
Normal file
50
application/extra/upload.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
//上传配置
|
||||
return [
|
||||
/**
|
||||
* 上传地址,默认是本地上传
|
||||
*/
|
||||
'uploadurl' => 'ajax/upload',
|
||||
/**
|
||||
* CDN地址
|
||||
*/
|
||||
'cdnurl' => '',
|
||||
/**
|
||||
* 文件保存格式
|
||||
*/
|
||||
'savekey' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
|
||||
/**
|
||||
* 最大可上传大小
|
||||
*/
|
||||
'maxsize' => '10mb',
|
||||
/**
|
||||
* 可上传的文件类型
|
||||
* 如配置允许 pdf,ppt,docx,svg 等可能含有脚本的文件时,请先从服务器配置此类文件直接下载而不是预览
|
||||
*/
|
||||
'mimetype' => 'jpg,png,bmp,jpeg,gif,webp,zip,rar,wav,mp4,mp3,webm',
|
||||
/**
|
||||
* 是否支持批量上传
|
||||
*/
|
||||
'multiple' => false,
|
||||
/**
|
||||
* 上传超时时长,这里仅用于JS上传超时控制
|
||||
*/
|
||||
'timeout' => 60000,
|
||||
/**
|
||||
* 是否支持分片上传
|
||||
*/
|
||||
'chunking' => false,
|
||||
/**
|
||||
* 默认分片大小
|
||||
*/
|
||||
'chunksize' => 2097152,
|
||||
/**
|
||||
* 完整URL模式
|
||||
*/
|
||||
'fullmode' => false,
|
||||
/**
|
||||
* 缩略图样式
|
||||
*/
|
||||
'thumbstyle' => '',
|
||||
];
|
||||
Reference in New Issue
Block a user