Skip to content

Commit

Permalink
增加fs配置说明
Browse files Browse the repository at this point in the history
  • Loading branch information
hbh112233abc committed May 10, 2021
1 parent ee21b4f commit 436b902
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,28 @@ php think migrate:run
如果有做数据迁移,将以数据库中的`ueditor_config`配置为主,你可以访问`http://你的域名/ueditor/setting/index`进行配置,示例:
![配置页面](./assets/images/setting.png)

> 使用独立配置的`filesystem`
配置`config/filesystem.php`增加`ueditor`的配置项,示例:
```
return [
'default' => 'local',
'disks' => [
...
'ueditor' => [
'type' => 'aliyun',
'accessId' => 'aliyun OSS accessId',
'accessSecret' => 'aliyun OSS accessSecret',
'endpoint' => 'aliyun OSS endpoint',
'bucket' => 'aliyun OSS bucket',
'url' => 'aliyun OSS url', //不要斜杠结尾,此处为URL地址域名。
],
```
> 以上配置引用了`thans/thinkphp-filesystem-cloud`,请自行安装
```
composer require thans/thinkphp-filesystem-cloud
```


你也可以在你的网站管理后台的某个系统设置的页面模板中使用`{:ue_setting()}`就可以自动生成以上的表单进行配置了


Expand Down

0 comments on commit 436b902

Please sign in to comment.