-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
使用minio存储,无法上传 - url错误 #57
Comments
我们需要MinIO启用Virtual Hosted-Style,所以使用Minio的时候需要绑定一个域名,然后需要给MinIO设置环境变量MINIO_DOMAIN=minio.localhost。 https://stackoverflow.com/questions/59693471/how-to-setup-minio-server-to-use-virtual-hosted-style 最后把zpan配置文件中的endpoint设置为 http://minio.localhost 即可 |
修改了配置 可以上传,图床 预览好像还有问题
minio 配置了 MINIO_DOMAIN="mao3.c"
图床 ->添加图片->缩略图错误,在 “全部文件->图片” 下点击查看没有问题 |
这里确实没注意,应该是权限问题,图床的链接是不带签名的,得需要MinIO支持公开访问。可以查下能不能配置 |
配置策略可行,但图床的图片和其它非公开都放置到一个目录 无法区分设置策略
https://docs.min.io/docs/minio-client-complete-guide#policy https://docs.min.io/cn/minio-server-limits-per-tenant.html临时方案解决:
较好的做法应该是在配置文件中支持这个可选配置并修改provider/provider_s3.go的SignedPutURL方法,可否考虑下? |
确实 目前图床文件没有单独存储到一个独立的目录 后续我们看下怎么优化下 |
vscode debug master code
zpan.yml:
The text was updated successfully, but these errors were encountered: