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
- Host: GitHub
- URL: https://github.com/contentjet/contentjet-s3
- Owner: contentjet
- Created: 2018-08-06T11:27:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T21:41:35.000Z (over 4 years ago)
- Last Synced: 2025-03-06T08:51:08.927Z (over 1 year ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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=''
```