> ## Documentation Index
> Fetch the complete documentation index at: https://bunny.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopware

> Configure bunny.net CDN with Shopware to accelerate your e-commerce store and improve customer experience.

Shopware can serve media through Bunny CDN using a community-built adapter that uploads your content to a Bunny Storage zone and delivers it through a connected Pull Zone.

> [!NOTE]
>
> The [Shopware adapter](https://github.com/tinect/TinectMediaBunnycdn) is built and maintained by the community, not by bunny.net.

**1. Create a Storage Zone and Pull Zone**

The adapter uploads your media to a Bunny [Storage Zone](/docs/storage.md), which is then delivered through a Pull Zone that uses the Storage Zone as its origin. Set up both before configuring Shopware. For details, see [How to create your first Pull Zone](/docs/cdn/quickstart.md).

**2. Install the Shopware adapter**

Download the latest `TinectMediaBunnycdn.zip` from the adapter's [GitHub releases page](https://github.com/tinect/TinectMediaBunnycdn/releases).

In Shopware, open **Configuration → Plugin Manager**.

![Opening the Shopware Plugin Manager](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/shopware-plugin-manager.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=3e20989f957fd67fdbe4535da2865f64)

Go to **Installed**, click **Upload Plugin**, and select the ZIP file you downloaded.

![Uploading the plugin ZIP file](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/shopware-upload-plugin.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=afa22ab539389c049f2f1c0c36be8ba1)

The plugin appears under **Uninstalled**. Click the green **+** to install it.

![Installing the uploaded plugin](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/shopware-enable-plugin.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=77c8c710de249e117afdcf05865a9a6d)

Once installed, the plugin is **Inactive**. Click the pencil icon next to its name, then click **Activate**. If prompted to clear caches, confirm.

![Activating the plugin](https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/images/cdn/integrations/cms/shopware-activate-plugin.png?fit=max\&auto=format\&n=1bTPx1eyQm8EK8W3\&q=85\&s=c3e0ba5882f87dbf37f87f425a268b86)

**3. Configure Shopware to use Bunny CDN**

You'll need SSH or FTP access to edit a PHP file. In your Shopware install directory, open `config.php` and append the following to the configuration array:

```php theme={null}
'cdn' => [
    'backend' => 'bunnycdn',
    'adapters' => [
        'bunnycdn' => [
            'type' => 'bunnycdn',
            'mediaUrl' => 'https://PULLZONE.b-cdn.net/',
            'apiUrl' => 'https://storage.bunnycdn.com/STORAGEZONENAME/',
            'apiKey' => 'secret-api-key',
        ],
    ],
],
```

Replace `PULLZONE` with your Pull Zone hostname, `STORAGEZONENAME` with your Storage Zone name, and `apiKey` with the password from your Storage Zone's **FTP & API Access** page.

Finally, upload your existing local media to the Storage Zone:

```bash theme={null}
bin/console sw:media:migrate --from=local --to=bunnycdn
```

Your Shopware store now serves media through Bunny CDN.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.