A CDN solution using AWS S3 and Lambda
This is still in progress
Check the dev console in action!

Since there is no ssl certificate, you will need to ignore (by-pass) the certificate error. (Click Advanced and Proceed to ...)
docker-compose up -dhttps://localhost/thumbnails/x128/3wm604wp7qg21.jpg as wellMinio s3 endpoint is https://localhost/ or http://localhost:9000.
Use key id and credential from the .env file
AKIAMOCKACESSKEYIDZZ
mock+AWS+SECRETaccessKEY+mock+access+KEY
from the sample

From the three dots icon beside the bucket, click Edit policy and click add button.

and then try https://localhost/images/3wm604wp7qg21.jpg
If you want to use the s3 endpoint to your docker-compose project, use docker network.
your-service:
...
network: traefik
networks:
traefik:
external:
name: traefik
Then you can access the bucket via http://minio:9000/ from your container.
/images/any/external/file.jpg?duplicate=<url> will download url and save to images/any/external/file.jpg
only jpegs and pngs extensions are supported.
Since this is mutating the source bucket, this endpoint should be authenticated (TODO)
${width}x${height}x${height}${width}xContent type
Image
Digest
Size
110 MB
Last updated
over 5 years ago
docker pull kennyhyun/nodejs-s3-thumbnail-generator