- Clone the plugin sourcecode from: https://github.com/SHOPMACHER/image-server-sw5
- Install the plugin in the Plugin Manager or using this command
$ ./bin/console sw:plugin:install ShopmacherImageServer5 --clear-cache
- Update the plugin configuration for the ImageServer API authentication.
- Update the Shopware CDN configuration .In ./config.php, replace/edit your configuration like this:
# config.php 'cdn' => [ 'backend' => 'ImageServer', 'strategy' => 'ImageServer', 'adapters' => [ 'local' => [ 'type' => 'local', 'mediaUrl' => 'md5', 'path' => realpath(__DIR__ . '/') ], 'imageserver' => [ 'type' => 'imageserver', 'strategy' => 'imageserver', 'mediaUrl' => 'https://imageserver.scalecommerce.cloud/images/', 'auth' => [ 'project_name' => '[project_name]', 'project_uuid' => '[project_uuid]', 'access_token' => '[api_access_token]', ], ], ] ],
$ bin/console sw:media:migrate --from=local --to=imageserver