Microservice for processing images and uploading them to a designated bucket on AWS S3
3.0K

From Jötunheimr, the giants menace the humans in Midgard and the gods in Asgard. The river Ifing separates Asgard, the realm of the gods, from Jötunheimr, the land of giants. Gastropnir, home of Menglad, and Þrymheimr, home of Þjazi, were both located in Jötunheimr, which was ruled by King Thrym. Glæsisvellir was a location in Jötunheimr, where lived the giant Gudmund, father of Höfund. Utgard was a stronghold surrounding the land of the giants.
This Node.JS microservice processes images before uploading them to a designated bucket on AWS S3. Utilizing express for handling requests, and node-s3-uploader for resizing and uploading to AWS S3.
npm install jotunheimr
PORT_WWW - server listening portALLOW_ORIGINS - allowed origins whitelist (comma seperated)AWS_ACCESS_KEY_ID AWS public keyAWS_SECRET_ACCESS_KEY AWS secret keyAWS_BUCKET_NAME AWS S3 bucket nameAWS_BUCKET_PATH Path inside bucketnpm start
curl -X POST \
-H "Origin: http://example.com" \
-F image=@path/to/file.jpg \
http://localhost:4010/upload
Content type
Image
Digest
Size
306.9 MB
Last updated
over 8 years ago
docker pull turistforeningen/jotunheimr