lindenlab / caddy-s3-proxy

s3 proxy plugin for caddy
Apache License 2.0
72 stars 22 forks source link

How can I use multiple profiles? #43

Closed axel-verse closed 3 years ago

axel-verse commented 3 years ago

For some reason I must support several accounts. So is there a way to configure s3proxy to use several profiles (for example, from .aws/credentials)?

Very thanks for your plugin, it is great!

rayjlinden commented 3 years ago

Not currently. I've never used profiles so I guess the thought never occurred to me...

If you know how to write go - a Pull Request would be great. Otherwise, I'll read up on using profiles tonight. I can't imagine it would be too hard to support.

On Mon, Jan 11, 2021 at 12:57 PM axel-verse notifications@github.com wrote:

For some reason I must support several accounts. So is there a way to configure s3proxy to use several profiles (for example, from .aws/credentials)?

Very thanks for your plugin, it is great!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lindenlab/caddy-s3-proxy/issues/43, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKE5LWWR7GEBRONZ4ZIWXJLSZNQ4RANCNFSM4V6E6CBQ .

rayjlinden commented 3 years ago

I just releases version 0.5.6 of s3-proxy. It includes a new "profile" directive you can use to specify specific credentials out of a shared credentials file.

I was not able to test it much. So please let me know how it works out for you,.

axel-verse commented 3 years ago

Thanks you very much, you are awesome )))

I will test it tonight

axel-verse commented 3 years ago

Tested and works like a charm ))) No errors encoutered, no unwanted behaviour faced. I am just delighted