> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-support-migration.mintlify.site/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.
</Note>

<Steps>
  <Step title="Create a Storage Zone and Pull Zone">
    The adapter uploads your media to a Bunny [Storage Zone](/storage), 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](/cdn/quickstart).
  </Step>

  <Step title="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**.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/7nPf1p6kEqFGPtU3/images/cdn/integrations/cms/shopware-plugin-manager.png?fit=max&auto=format&n=7nPf1p6kEqFGPtU3&q=85&s=7eadc7aac9abbd39cc130176e53dfbe1" alt="Opening the Shopware Plugin Manager" width="215" height="482" data-path="images/cdn/integrations/cms/shopware-plugin-manager.png" />
    </Frame>

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

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/7nPf1p6kEqFGPtU3/images/cdn/integrations/cms/shopware-upload-plugin.png?fit=max&auto=format&n=7nPf1p6kEqFGPtU3&q=85&s=d3d7a62fed06035f752e7b5fa3b7ad05" alt="Uploading the plugin ZIP file" width="2016" height="955" data-path="images/cdn/integrations/cms/shopware-upload-plugin.png" />
    </Frame>

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

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/7nPf1p6kEqFGPtU3/images/cdn/integrations/cms/shopware-enable-plugin.png?fit=max&auto=format&n=7nPf1p6kEqFGPtU3&q=85&s=2c5a105fe2a8e832746800f81e41263e" alt="Installing the uploaded plugin" width="1031" height="29" data-path="images/cdn/integrations/cms/shopware-enable-plugin.png" />
    </Frame>

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

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/7nPf1p6kEqFGPtU3/images/cdn/integrations/cms/shopware-activate-plugin.png?fit=max&auto=format&n=7nPf1p6kEqFGPtU3&q=85&s=f7f4e2073363175aa1cb6b7f4678c9b2" alt="Activating the plugin" width="1065" height="448" data-path="images/cdn/integrations/cms/shopware-activate-plugin.png" />
    </Frame>
  </Step>

  <Step title="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
    ```
  </Step>
</Steps>

Your Shopware store now serves media through Bunny CDN.
