Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEXT-26756 - Unbundle AWS / Google Cloud Storage adapters #1177

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions guides/hosting/infrastructure/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ shopware:
Be aware of the **prod** in the config path. CDNs are typically for production environments, but you can also set them for all environments in `config/packages/shopware.yml`.
:::

## Integrated adapter configurations
## Supported adapter configurations

### Local

Expand All @@ -115,6 +115,14 @@ shopware:

### Amazon S3

In order to use the S3 adapter you need to install the `league/flysystem-async-aws-s3` package.

```bash
composer require league/flysystem-async-aws-s3
```

Example configuration:

```yaml
shopware:
filesystem:
Expand All @@ -137,7 +145,13 @@ If your S3 provider does not use buckets as subdomain like Minio in default conf

### Google Cloud Platform

The bucket needs to use the "Fine-grained" [ACL mode](https://cloud.google.com/storage/docs/access-control#choose_between_uniform_and_fine-grained_access). This is required so that Shopware can manage the ACL of the objects.
In order to use the Google Cloud Platform adapter you need to install the `league/flysystem-google-cloud-storage` package.

```bash
composer require league/flysystem-google-cloud-storage
```

Example configuration:

```yaml
shopware:
Expand All @@ -152,6 +166,9 @@ shopware:
keyFilePath: "{path-to-your-keyfile}"
```

The bucket needs to use the "Fine-grained" [ACL mode](https://cloud.google.com/storage/docs/access-control#choose_between_uniform_and_fine-grained_access). This is required so that Shopware can manage the ACL of the objects.


## Add your own adapter

To create your own adapter, check out the [official Flysystem guide](https://flysystem.thephpleague.com/v1/docs/advanced/creating-an-adapter/).
Expand Down
Loading