trinodb / aws-proxy

Proxy for S3
Apache License 2.0
8 stars 5 forks source link

Allow path-style addressing when proxy is using virtual host #146

Closed mosiac1 closed 2 months ago

mosiac1 commented 2 months ago

This changes the behaviour of RequestFilter so that:

  1. If the request host matches some-bucket.${hostname}/some-object then bucket=some-bucket and key=some-key;
  2. Otherwise, the host is ignored and the bucket and key are read from the path.