Skip to content

Commit

Permalink
NEXT-26756 - Updated documentation regarding storage adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozsef Damokos committed Nov 8, 2023
1 parent 6b06502 commit 097bded
Showing 1 changed file with 19 additions and 2 deletions.
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

0 comments on commit 097bded

Please sign in to comment.