Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Shrine::Storage::AliyunOSS

Provides Alibaba cloud object storage for Shrine.

Installation

Add this line to your application's Gemfile:

gem 'shrine-aliyun-oss'

Usage

require "shrine"
require "shrine/storage/aliyun_oss"

oss_options = {
  endpoint: "oss-<region-name>.aliyuncs.com",
  access_key_id: "<access_key_id>",
  access_key_secret: "<access_key_secret>",
  bucket: "<bucket-name>"
}

Shrine.storages = {
  cache: Shrine::Storage::AliyunOSS.new(prefix: "cache", **oss_options),
  store: Shrine::Storage::AliyunOSS.new(prefix: "store", **oss_options)
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/zillou/shrine-aliyun-oss.

License

About

Alibaba Cloud OSS for Shrine

Topics

Resources

License

Packages

No packages published

Languages