gaul / s3proxy

Access other storage backends via the S3 API
Apache License 2.0
1.77k stars 231 forks source link

Bucket alias middleware #370

Open timuralp opened 3 years ago

timuralp commented 3 years ago

For certain use cases, it may be convenient to be able to rename the backend bucket and specify the mapping via a middleware. This would allow keeping bucket names the same on the application side or avoid collisions.

gaul commented 3 years ago

Agreed that this would be a good middleware, especially if it can do some prefix redirection as well. Might be worth looking at Apache rewrite rules to see what other clever people have thought of (globs?).