Files
YwxAppThink/addon/forum/config.php
T

44 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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',
];