Feature Request - host-based buckets for Minio
willvincent opened this issue · 1 comments
minio has included support for host-based (subdomain) buckets for several years, to use it, it's necessary to pass a flag to minio specifying the domain. AWS will be (at some point) deprecating path-based buckets, so it would be good to at least optionally support this before then.
From a minio github issue back in 2017:
This feature is on only when server is started with --address
From the docs:
By default, MinIO supports path-style requests that are of the format http://mydomain.com/bucket/object. MINIO_DOMAIN environment variable is used to enable virtual-host-style requests. If the request Host header matches with (.+).mydomain.com then the matched pattern $1 is used as bucket and the path is used as object.
Example:
export MINIO_DOMAIN=mydomain.com minio server /data
I believe this means if we optionally collect a domain name (ie: minio.test, minio.localdomain, etc) and pass that into the docker container as an environment variable, dns buckets should work, which would future proof for whenever amazon eventually drops path based bucket support, and allow use of current tools that (kind of stupidly, imho) don't support path-based buckets.
Have confirmed, with that env var set, dns style buckets work as they should.