An open API service indexing awesome lists of open source software.

https://github.com/contentjet/contentjet-s3

AWS S3 storage backend for Contentjet
https://github.com/contentjet/contentjet-s3

Last synced: about 1 year ago
JSON representation

AWS S3 storage backend for Contentjet

Awesome Lists containing this project

README

          

# contentjet-s3

AWS S3 storage backend for [contentjet-api](https://github.com/contentjet/contentjet-api).

To enable you MUST set the following environment variable.

```
STORAGE_BACKEND=contentjet-s3
```

You MUST also provide the follow values.

```
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
AWS_S3_BUCKET=
MEDIA_URL=
```

Note `MEDIA_URL` is the public URL of where to access the files from. For example, if your bucket has static hosting enabled this would be your bucket's endpoint URL. If you are using a CDN in front of your bucket (like Cloudfront) this would be the URL of your CDN.

You MAY also set the following to override the defaults shown.

```
AWS_S3_STORAGE_CLASS=STANDARD
AWS_S3_CACHE_CONTROL='max-age=604800'
AWS_S3_KEY_PREFIX=''
```