Processes images and finds thumbnails for Feedbin
- libvips 8.6+
- Ruby 2.7
- An AWS S3 bucket
- Redis shared with the main Feedbin instance
AWS_ACCESS_KEY_ID
- Your AWS access key IDAWS_SECRET_ACCESS_KEY
- You AWS secret access keyAWS_S3_BUCKET_IMAGES
(orAWS_S3_BUCKET
if not set) - The bucket to upload the thumbnails toREDIS_URL
- The URL to the Redis instance used by the main Feedbin instanceFACEBOOK_ACCESS_TOKEN
- Needed to access Instagram images
Optional variables, you might need these for non-AWS providers:
AWS_S3_REGION
- The AWS region of your bucketAWS_S3_HOST
- domain of your endpointAWS_S3_ENDPOINT
- Same but with the scheme and portAWS_S3_PATH_STYLE
- Need to be set totrue
for Minio
You can technically also use Minio or another S3 alternative by editing the parameters in lib/storage.rb. The Minio cookbook has an example with the necessary parameters.
Clone the repo and install dependencies:
git clone https://github.com/feedbin/image.git
cd image
bundle
Start the server with bundle exec foreman start
You may need to adjust the ENTRY_IMAGE_HOST
environment variable of the main Feedbin instance if you want to use a reverse proxy to S3 or if you're using an alternative file server. The variable can be used to replace the hostname clients use to get the images, but the path can't be changed.