silverstripe / silverstripe-s3

Silverstripe module to store assets in S3 rather than on the local filesystem (SS4/SS5 only)
BSD 3-Clause "New" or "Revised" License
20 stars 25 forks source link

Define S3 URL #50

Closed abdou-ghonim closed 2 years ago

abdou-ghonim commented 2 years ago

Hi I how to use this module with MinIO how to define the URL of MinIO

wilr commented 2 years ago

@abdou-ghonim Try AWS_ENDPOINT, we use this for pointing to https://fra1.digitaloceanspaces.com but I assume it's similar with MinIO with this config.

---
Only:
  envvarset: AWS_BUCKET_NAME
After:
  - '#assetsflysystem'
---
SilverStripe\Core\Injector\Injector:
  Aws\S3\S3Client:
    constructor:
      configuration:
        region: '`AWS_REGION`'
        version: latest
        endpoint: '`AWS_ENDPOINT`'