tijsdriven/m2-module-alibabacloud-oss

Tijs Driven Development AlibabaCloud OSS module

0.0.1 2023-11-26 20:24 UTC

This package is auto-updated.

Last update: 2024-04-26 21:29:06 UTC


README

This module enables any AlibabaCloud OSS bucket to be used as remote storage drive for the Magento media files.

Configuration

Most of the configuration the module uses will be taken from the main TijsDriven_AlibabaCloud module configuration. Check that module to see how to configure. Once configuration is done successfully, no additional work should be needed to use the OSS as the media remote storage.

'remote_storage' => [
    'driver' => 'tijsdriven-alibabacloud-oss',
    'prefix' => '',
    'config' => [
        'region' => 'oss-cn-hangzhou',
        'bucket' => 'my-oss-bucket',
    ]
]

Usage

Magento will use the OSS bucket automatically for the pub/media folder. Also, for example the .maintenance.flag will be stored on the OSS so all Magento instances will be aware the system is in maintenance mode.

AlibabaCloud Resources