frosh / bunnycdn-media-storage

1.0.4 2019-04-25 09:18 UTC

This package is auto-updated.

Last update: 2024-08-25 18:22:04 UTC


README

Software License

bunnyCDN适配器允许您在bunnyCDN-Storage上管理Shopware中的媒体文件。

安装

从发布页面下载插件,并在Shopware中启用。

用法

更新您根目录下的config.php并填写您自己的值

'cdn' => [
    'backend' => 'bunnycdn',
    'adapters' => [
        'bunnycdn' =>
            [
                'type' => 'bunnycdn',
                'mediaUrl' => 'https://example.b-cdn.net/',
                'apiUrl' => 'https://storage.bunnycdn.com/example/',
                'apiKey' => 'secret-api-key'
            ]
     ]
]

迁移

bin/console sw:media:migrate --from=local --to=bunnycdn

更多信息: https://developers.shopware.com/developers-guide/shopware-5-media-service/#file-system-adapters

建议

许可证

MIT许可证(MIT)。请参阅许可证文件以获取更多信息。