Sign inSign up

indece/s3-cdn

By indece

•Updated 9 months ago

Lightweight CDN server (NGINX) for S3-Backend

Image
0

2.0K

indece/s3-cdn repository overview

⁠S3-CDN

Lightweight CDN server (NGINX) for S3-Backend (e.g. minio)

GitHub: https://github.com/indece-official/s3-cdn⁠

⁠Usage

docker run -p 8080:8080 -e ACCESS_KEY=my-accesskey -e SECRET_KEY=my-secretkey -e SOURCE_PATH='s3://my-s3-bucket/' indece/s3-cdn:latest

Opens a port on 8080 and serves the files from the bucket

Important: Clones all files from the SOURCE_PATH to /data, even if a file is not accessed via HTTP.

⁠Environment variables
VariableRequiredDefaultDescription
ACCESS_KEYyesS3-Access-Key
SECRET_KEYyesS3-Secret-Key
SOURCE_PATHyesSource-Path for s3 sync (e.g. 's3://my-bucket-name/')
CRON_SCHEDULE"*/15 * * * *"Cron shedule for s3 sync
S3SYNC_ARGS""Extra options passed to aws-cli for s3 sync
⁠Health checks

The path /health always returns 200 ok when nginx is running (this doesn't verify if the s3-sync is ok).

Tag summary

Content type

Image

Digest

sha256:2915d3767…

Size

44.9 MB

Last updated

9 months ago

docker pull indece/s3-cdn