Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 1.12 KB

README.md

File metadata and controls

16 lines (9 loc) · 1.12 KB

fnbr-bulk-resize

Service to resize images for image.fnbr.co into smaller sizes. Resize requests are sent through Redis on the channel set in the config.

It will first download the file if not already present locally, then run it through the sharp library to resize and finally upload all of the newly resized images to S3.

S3 Compatibility

By default the config will be expecting credentials for Amazon S3 but it also supports a provider with an S3-compatible API, such as DigitalOcean Spaces or Cloudflare R2.

To use an alternative provider define the endpoint field, see config/config.default.js for an example.

Healthcheck

It is possible to enable a basic healthcheck endpoint, useful for a monitoring system to ping the service to make sure it is still online. If enabled in the config, a http server will be available at a customisable port and respond with alive to any request.