Added 3 setup
This commit is contained in:
parent
23b7f492b0
commit
6ed5b793e8
53
README.md
53
README.md
@ -1,3 +1,54 @@
|
||||
## Polyphonic
|
||||
|
||||
A simple web app for managing video uploads to an S3 bucket for virtual ensembles.
|
||||
A simple web app for managing video uploads to an S3 bucket for virtual ensembles.
|
||||
|
||||
### S3 Setup
|
||||
|
||||
#### Bucket setup [virtual-orchestra]
|
||||
Default block public access
|
||||
|
||||
Permissions -> CORS
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
|
||||
<CORSRule>
|
||||
<AllowedOrigin>https://polyphonic.mydomain.com</AllowedOrigin>
|
||||
<AllowedMethod>PUT</AllowedMethod>
|
||||
<AllowedMethod>POST</AllowedMethod>
|
||||
<AllowedMethod>DELETE</AllowedMethod>
|
||||
<ExposeHeader>Location</ExposeHeader>
|
||||
<AllowedHeader>*</AllowedHeader>
|
||||
</CORSRule>
|
||||
<CORSRule>
|
||||
<AllowedOrigin>*</AllowedOrigin>
|
||||
<AllowedMethod>GET</AllowedMethod>
|
||||
</CORSRule>
|
||||
</CORSConfiguration>
|
||||
```
|
||||
|
||||
User
|
||||
Create with programatic access (copy keys) and an inline policy for the bucket.
|
||||
```json
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"s3:ListBucket"
|
||||
],
|
||||
"Resource": "arn:aws:s3:::virtual-orchestra"
|
||||
},
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"s3:PutObject",
|
||||
"s3:GetObject"
|
||||
],
|
||||
"Resource": "arn:aws:s3:::virtual-orchestra/*"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
3.
|
||||
Loading…
x
Reference in New Issue
Block a user