Skip to content

Commit

Permalink
Updated doc to add rsa key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat Saxena committed May 11, 2024
1 parent 36d7706 commit 4dd9410
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ CLOUDFRONT_KEY_PAIR_ID=KEY_PAIR_ID

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.

### Generating a key pair

Use the following commands to generate a key pair to be used above.

```sh
openssl genrsa -out private_key.pem 2048
openssl rsa -pubout -in private_key.pem -out public_key.pem
```

## Enable trust proxy

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.
Expand Down

0 comments on commit 4dd9410

Please sign in to comment.