Replies: 5 comments
-
上传失败, 图片上传失败 |
Beta Was this translation helpful? Give feedback.
0 replies
-
解决了,我的在356行。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以用这个创建阿里oss吗,我香港的存储桶一直挂不上,不显示,alist都可以挂上的。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以直接用AwsS3策略一样的,我试过了,不想大改,就把/app/Services/ImageService.php 里面的StrategyKey::S3 => new AwsS3V3Adapter
改成这样也不影响AwsS3正常使用,如果是backblaze空间,就在区域(region)里面填区域@Backblaze就好了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
实际上兰空图床是支持 backblaze b2 的,只不过 AWS s3 的 sdk 中,默认存在 ACL(https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html) 配置,参数值默认为 private,因为 b2 控制台中没有 ACL 设置,使用公开的 bucket 会出现错误:
Cannot parse S3 Canned ACL value of 'private'
,所以需要稍微修改点代码,覆盖 acl 配置。打开文件:
lsky-pro/app/Services/ImageService.php
Line 339 in a8ab0c6
在 339 行下面追加一行:
示例:
然后在创建储存策略时,选择 Minio 进行配置即可,以下是配置示例。
其中的 Bucket、连接地址和区域,可以在 b2 控制台创建 Backet 以后找到,AccessKey 和 SecretKey 便是控制台中 App Key 中创建的前面,key ID = AccessKey,applicationKey = Secret Key。
注意:
Beta Was this translation helpful? Give feedback.
All reactions