Sign inSign up

onestay/resize-server

By onestay

•Updated about 9 years ago

This is just a simple server I wrote for the nfnt/resize package for Hikari.

Image
0

10K+

onestay/resize-server repository overview

⁠For production

The image is on Dockerhub⁠. It needs the following env variables to run:

  • BUCKET_NAME=The bucket where to get the files from and where to upload them
  • AWS_ACCESS_KEY_ID=Your aws access key id
  • AWS_SECRET_ACCESS_KEY=Your aws secret access key
  • AWS_REGION=the region of the bucket

After that you can hit the endpoint with a query paramter 'key' which is the picture to be resized. It will then produce a thumbnail of max 200x200 and upload it to the same bucket under a folder called /thumb.

⁠For dev

Fill out all the env vars and docker-compose up

Tag summary

Content type

Image

Digest

Size

159.6 MB

Last updated

about 9 years ago

docker pull onestay/resize-server
⌂ 换网址