Skip to content

ug0/waffle_aliyun_oss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaffleAliyunOss

Aliyun OSS Storage for Waffle

Installation

If available in Hex, the package can be installed by adding waffle_aliyun_oss to your list of dependencies in mix.exs:

def deps do
  [
    {:waffle_aliyun_oss, "~> 0.3.0"}
  ]
end

Configration

All configuration values are stored under the :waffle app key. E.g.

config :waffle,
  storage: Waffle.Storage.AliyunOss,
  bucket: "some-bucket",
  endpoint: "some.endpoint.com",
  access_key_id: "ALIYUN_ACCESS_KEY_ID",
  access_key_secret: "ALIYUN_ACCESS_KEY_SECRET"

You may also set the bucket from an environment variable:

config :waffle,
  storage: Waffle.Storage.AliyunOss,
  bucket: {:system, "OSS_BUCKET"},
  endpoint: {:system, "OSS_ENDPOINT"},
  access_key_id: {:system, "ALIYUN_ACCESS_KEY_ID"},
  access_key_secret: {:system, "ALIYUN_ACCESS_KEY_SECRET"}

Documentation

https://hexdocs.pm/waffle_aliyun_oss

About

Aliyun OSS for Waffle

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages