From d7d937847a140dcd9d0fb6c58fa357bb332966bc Mon Sep 17 00:00:00 2001 From: FuchsFuchs1 Date: Mon, 16 Dec 2024 08:34:41 +0100 Subject: [PATCH] fixed incorrect minio example policy (#1571) * fixed policy for minio mastodon bucket * fixed example to fit instructions --- content/en/admin/optional/object-storage.md | 28 +++++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/content/en/admin/optional/object-storage.md b/content/en/admin/optional/object-storage.md index 7fd856e5..f0b8dcbe 100644 --- a/content/en/admin/optional/object-storage.md +++ b/content/en/admin/optional/object-storage.md @@ -201,17 +201,23 @@ You need to set a policy for anonymous access that allows read-only access to ob To do this, you need to set a custom policy (replace `mastodata` with the actual name of your S3 bucket): ```json { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": "s3:GetObject", - "Resource": "arn:aws:s3:::mastodata/*" - } - ] + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": [ + "*" + ] + }, + "Action": [ + "s3:GetObject" + ], + "Resource": [ + "arn:aws:s3:::mastodata/*" + ] + } + ] } ```