https://github.com/ug0/waffle_aliyun_oss
Aliyun OSS for Waffle
https://github.com/ug0/waffle_aliyun_oss
Last synced: about 1 year ago
JSON representation
Aliyun OSS for Waffle
- Host: GitHub
- URL: https://github.com/ug0/waffle_aliyun_oss
- Owner: ug0
- Created: 2020-05-12T07:39:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-30T02:57:59.000Z (over 3 years ago)
- Last Synced: 2025-03-24T12:04:26.893Z (over 1 year ago)
- Language: Elixir
- Size: 50.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WaffleAliyunOss
Aliyun OSS Storage for Waffle
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `waffle_aliyun_oss` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:waffle_aliyun_oss, "~> 0.3.0"}
]
end
```
## Configration
All configuration values are stored under the :waffle app key. E.g.
```elixir
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:
```elixir
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](https://hexdocs.pm/waffle_aliyun_oss)