tijsdriven / m2-module-alibabacloud-oss
Tijs Driven Development AlibabaCloud OSS module
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: >=8.1
- magento/framework: 103.*
- tijsdriven/flysystem-alibabacloud-oss: >=0.0.1
- tijsdriven/m2-module-alibabacloud: >=0.0.1
Requires (Dev)
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.