generated from br3ndonland/template-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `fastenv.cloud.object_storage.ObjectStorageConfig` class is used to configure fastenv for connecting to object storage buckets. The class accepts a `bucket_host` in "virtual-hosted-style," like `<BUCKET_NAME>.s3.<REGION>.amazonaws.com` for AWS S3 or `<BUCKET_NAME>.s3.<REGION>.backblazeb2.com` for Backblaze B2. Object storage buckets commonly have HTTPS endpoints, and therefore some users may prepend the scheme ("https://") to their `bucket_host`. The scheme should be removed if present because it is added automatically when generating instances of `httpx.URL()`. This commit will update `fastenv.cloud.object_storage.ObjectStorageConfig` to remove the scheme. https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html
- Loading branch information
1 parent
0f2c1bb
commit 9232d8f
Showing
2 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters