stavro / arc

:paperclip: Flexible file upload and attachment library for Elixir
1.16k stars 210 forks source link

minio storage support #293

Open wahello opened 4 years ago

wahello commented 4 years ago

Please add support minio storage support

jbosse commented 2 years ago

Minio mimics the AWS api so if you set your config with the correct values it should work.

config :arc,
  storage: Arc.Storage.S3,
  bucket: {:system, "S3_BUCKET"}

config :ex_aws,
  access_key_id: {:system, "AWS_ACCESS_KEY_ID"},
  secret_access_key: {:system, "AWS_SECRET_ACCESS_KEY"},
  region: {:system, "S3_REGION"} || "us-east-1"

config :ex_aws, :s3,
  scheme: {:system, "S3_SCHEME"} || "https://",
  host: {:system, "S3_HOST"} || "s3.amazonaws.com",
  region: {:system, "S3_REGION"} || "us-east-1",
  port: {:system, "S3_PORT"} || 443