Skip to content

Repository files navigation

ImageServer Plugin for SW5

INSTALLATION & CONFIGURATION

  1. Clone the plugin sourcecode from: https://github.com/SHOPMACHER/image-server-sw5
  2. Install the plugin in the Plugin Manager or using this command
    $ ./bin/console sw:plugin:install ShopmacherImageServer5 --clear-cache
  3. Update the plugin configuration for the ImageServer API authentication.
  4. 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]',
                    ],
                ],
            ]
        ],
    

Migration

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages