Home

Awesome

SFTP Adapter for Shopware

Software License

The SFTP adapter allows you to manage your media files in shopware on a SFTP environment.

Building a package

Just run ./build.sh.

Install

Download the plugin from the release page and enable it in shopware.

Usage

Update your config.php in your root directory and fill in your own values

'cdn' => [
    'backend' => 'sftp',
    'adapters' => [
        'sftp' => [
            'type' => 'sftp',
            'mediaUrl' => 'YOUR_REMOTE_MEDIA_URL',
            'host' => 'YOUR_REMOTE_HOST',
            'port' => 22,
            'username' => 'YOUR_REMOTE_USERNAME',
            'password' => 'YOUR_REMOTE_PASSWORD',
            'privateKey' => 'PATH_TO_PRIVATE_KEY_FILE',
            'root' => 'YOUR_PATH_ON_REMOTE_HOST',
            'timeout' => 10
        ]
    ]
]

Value explanation

NameRequiredDescription
typeYesAdapter type. Do not change.
mediaUrlYesBase url where the media folders is available
hostYesHost of your remote
portNoDefaults to 22
usernameYesUsername for your remote
passwordNoPassword for your remote
privateKeyNoLocal path to your private key
rootNoPath on your remote
timeoutNoTimeout for contacting the server. Defaults to 10

License

The MIT License (MIT). Please see License File for more information.