chore: 重写初始提交(清空历史,整理后全量提交)

This commit is contained in:
ywxapp
2026-08-16 16:54:14 +08:00
commit 6c1a106bc1
1808 changed files with 238144 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
// +----------------------------------------------------------------------
// | YwxApp 轻社区论坛插件配置
return [
// 站点标题
'site_title' => '轻社区',
// 每页帖子数
'page_size' => 20,
// 是否允许游客发帖(false 需登录)
'guest_post' => false,
// 发帖是否需要审核
'need_audit' => 0,
// 上传目录(相对于 public/
'upload_dir' => 'static/forum/uploads',
/* ============ 编辑器(UEditor)配置 ============ */
// 编辑器上传根目录(相对于 public/),按插件隔离
'editor_upload_dir' => 'uploads/forum',
// 图片允许类型(逗号分隔,不含点)
'editor_image_ext' => 'jpg,jpeg,png,gif,bmp,webp',
// 图片大小上限(MB
'editor_image_size' => 10,
// 附件允许类型(逗号分隔,不含点)
'editor_file_ext' => 'zip,rar,7z,pdf,doc,docx,xls,xlsx,ppt,pptx,txt,md',
// 附件大小上限(MB
'editor_file_size' => 50,
// 视频允许类型(逗号分隔,不含点)
'editor_video_ext' => 'mp4,webm,ogg,mov',
// 视频大小上限(MB
'editor_video_size' => 100,
// 远程图片抓取(粘贴 Word 外链图落地):1 开启 0 关闭
'editor_catch_image' => 1,
// 编辑器初始高度(px
'editor_height' => 360,
/* ============ 全文检索(ES 可选增强,默认 LIKE ============ */
// 搜索引擎:like=原生模糊检索(默认);es=ElasticSearch
'search_engine' => 'like',
// ES 节点地址
'es_host' => 'http://127.0.0.1:9200',
// ES 索引名
'es_index' => 'ywxapp_forum',
];