Skip to content

beysong/oc-aliyunoss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigitalOcean Spaces Storage Driver

This October CMS plugin allows you to use Aliyun OSS as a filesystem on your installation.

Requirements

To use Aliyun OSS, you need to have a Aliyun account. After creating a Bucket and Bucket Access Key, you will have access to your Access Key ID and Secret Access Key that lets you use the API.

Plugin Settings

The plugin is configured in your October CMS filesystems.php and cms.php.

filesystems.php

Edit your filesystems.php to add a disk "backblaze" that uses the aliyun_oss driver:

return [

  ...

  'disks' => [
    'digitalocean' => [
      'driver' => 'aliyun_oss',
      'key'    => 'XXXXXXXXXXXXXXXXXXXX',
      'secret' => 'xxxXxXX+XxxxxXXxXxxxxxxXxxXXXXXXXxxxX9Xx',
      'region' => '<oss region>',
			'space'  => '<your bucket name>'
    ],
  ],

  ...

];

cms.php

Edit your cms.php to configure the media manager to use your "digitalocean" disk:

return [

  ...

  'storage' => [
    'media' => [
      'disk'   => 'bucket',
      'folder' => 'media',
      'path'   => 'https://<your bucket name>.<oss region>.aliyun.com/media'
    ],
  ],

  ...

];

Change Log

  • 1.0.1 - First version

TODO

  • All done!

Releases

No releases published

Packages

No packages published

Languages