howardlau1999 commented on code in PR #6504: URL: https://github.com/apache/opendal/pull/6504#discussion_r2275785600
########## core/src/services/oss/backend.rs: ########## @@ -104,6 +104,13 @@ impl OssBuilder { self } + /// Set addressing style for the endpoint. + pub fn addressing_style(mut self, addressing_style: &str) -> Self { Review Comment: > What's the difference of `CNAME` compared to `path-style`? For path style, the bucket name will appear in the URL path, i.e. https://oss-$region.aliyuncs.com/mybucket/objectname. However, this is normally forbidden. But for some historical reasons, some buckets are allowed to be accessed using this method. For cname, the user should bind a bucket to a custom domain and point the domain to official endpoints using CNAME records. For example, if the user binds a bucket named `mybucket` to a domain `storage.foo.com` and sets up a CNAME record to point `storage.foo.com` to an official endpoint (e.g. `oss-us-east-1.aliyuncs.com`), then no bucket name will be needed to appear when using this domain to access objects. The URL is just https://storage.foo.com/objectname. Technically, this is all about the `Host` header in the request. If a custom domain is not bound to a bucket in OSS, the access will be denied. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@opendal.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org