cshum / imagor

Fast, secure image processing server and Go library, using libvips
Apache License 2.0
3.44k stars 138 forks source link

[Question]: Multiple S3 buckets #458

Closed yngfoxx closed 3 months ago

yngfoxx commented 3 months ago

The environment variable only takes one bucket name as S3_LOADER_BUCKET, is it possible to have imagor use different buckets with same or different S3 credentials?

cshum commented 3 months ago

https://github.com/cshum/imagor?tab=readme-ov-file#different-aws-credentials-for-s3-loader-storage-and-result-storage The current environment variable supports different s3 credentials from s3 loader, storage or result storage respectively, but it currently does not support multiple s3 loaders of different credentials.

However if being able to construct the imagor server via code, it is actually straightforward to stack up multiple instances of S3 loaders of different credentials: https://github.com/cshum/imagor/blob/master/examples/server/main.go#L22

yngfoxx commented 3 months ago

Great Idea, will work around that!