Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes authored Oct 28, 2024
1 parent 11b671d commit 6755df7
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,43 +402,6 @@ Supported providers with their required environment variables:
*Web-compatible MP4 files required for hosting providers without video processing


## Required Permissions for Amazon S3

<details>
<summary>If you're using Amazon S3 as the provider, you'll need to create a new IAM user with the following permissions:</summary>

```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:CreateBucket",
"s3:PutBucketOwnershipControls"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:PutBucketPublicAccessBlock",
"s3:PutBucketAcl",
"s3:PutBucketCORS",
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::next-videos-*"
}
]
}
```
</details>


### Asset metadata storage hooks (callbacks)

By default the asset metadata is stored in a JSON file in the `/videos` directory.
Expand Down Expand Up @@ -519,6 +482,43 @@ export { handler as default } from '@/next-video';
```


## Required Permissions for Amazon S3

<details>
<summary>If you're using Amazon S3 as the provider, you'll need to create a new IAM user with the following permissions:</summary>

```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:CreateBucket",
"s3:PutBucketOwnershipControls"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:PutBucketPublicAccessBlock",
"s3:PutBucketAcl",
"s3:PutBucketCORS",
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::next-videos-*"
}
]
}
```
</details>


## Roadmap

### v0
Expand Down

0 comments on commit 6755df7

Please sign in to comment.