BlueXIII's Blog

热爱技术,持续学习

0%

Minio策略配置

参考文档

常用操作

1
2
3
4
5
6
7
./mc config host add minio http://localhost:9000 admin password --api s3v4
./mc list

./mc policy get minio/images

./mc policy set public minio/images
./mc policy set-json ./policy.json minio/images

自定义policy.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Resource": [
"arn:aws:s3:::images/*"
],
"Sid": ""
}
]
}