You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,31 @@
2
2
3
3
MediaLit is a Node.js based app to store, convert and optimise the media files on any AWS S3 compatible storage.
4
4
5
+
## Setting up correct access on AWS S3 bucket
6
+
7
+
Before you start uploading to your bucket, make sure you have set up the correct access on your S3 bucket.
8
+
9
+
### 1. Without Cloudfront
10
+
11
+

12
+
13
+
### 2. With Cloudfront
14
+
15
+

16
+
17
+
## Using Cloudfront
18
+
19
+
If you need to use a Cloudfront CDN, you can enable it in the app, by setting up the following values in your .env file.
20
+
21
+
```sh
22
+
USE_CLOUDFRONT=true
23
+
CLOUDFRONT_ENDPOINT=CLOUDFRONT_DISTRIBUTION_NAME
24
+
CLOUDFRONT_PRIVATE_KEY="PRIVATE_KEY"
25
+
CLOUDFRONT_KEY_PAIR_ID=KEY_PAIR_ID
26
+
```
27
+
28
+
We assume that since you are using Cloudfront, you have locked down your bucket from public access. Therefore, all the files uploaded to the bucket will have ACL set to `private` i.e. they will require signed URLs in order to access them.
29
+
5
30
## Enable trust proxy
6
31
7
32
This app is based on [Express](https://expressjs.com/) which cannot work reliably when it is behind a proxy. For example, it cannot detect if it behind a proxy.
0 commit comments