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自定义域名,Storage::url获取自已的资源地址 #73

Open
jackcoco opened this issue May 30, 2019 · 2 comments
Open

Comments

@jackcoco
Copy link

AliOssServiceProvider.php
修改内部节点为:$epInternal = empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']; // 内部节点
$client = new OssClient($accessId, $accessKey, $epInternal);

filesystems.php
参数描述:
···
'endpoint' => '外网访问节点',
'endpoint_internal' => '内网节点',
'cdnDomain' => '自定义OSS外网访问域名',
'ssl' => true,
'isCName' => true,
····

修改后:
Storage::url($yourpath); 就可以获取正常的自定义url

@ahu
Copy link

ahu commented Dec 26, 2019

AccessDenied: You have no right to access this object because of bucket acl.

被这个问题快弄疯了,各种查,差点提了阿里云工单...

最后才发现是$epInternal这个问题导致的...

@LinXueYi
Copy link

oss 配置 endpoint 和 cdnDomain 时,不加 https:// 就正常,不用修改代码

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

No branches or pull requests

3 participants