Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加入阿里云OSS支持 #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ndj888
Copy link

@ndj888 ndj888 commented Jul 26, 2018

加入阿里云OSS

使用方法
在 UEditorUpload 修改 mode 为 aliyun
laravel app/config/filesystems.php disk中加入

'oss' => [ 'driver' => 'oss', 'access_id' => '', 'access_key' => '', 'bucket' =>'', 'endpoint' => 'oss-cn-hangzhou.aliyuncs.com', // OSS 外网节点或自定义外部域名 //'endpoint_internal' => '<internal endpoint [OSS内网节点] 如:oss-cn-shenzhen-internal.aliyuncs.com>', // v2.0.4 新增配置属性,如果为空,则默认使用 endpoint 配置(由于内网上传有点小问题未解决,请大家暂时不要使用内网节点上传,正在与阿里技术沟通中) 'cdnDomain' => 'oss.mub.link', // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url,如果cdnDomain未设置,则使用endpoint来生成url,否则使用cdn 'ssl' => false, 'isCName' => true, 'debug' => true ],

测试环境

laravel-framework 5.5.*
stevenyangecho/laravel-u-editor v1.4.2
encore/laravel-admin v1.5.5

@ndj888
Copy link
Author

ndj888 commented Jul 26, 2018

请作者帮忙纳入主干 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant