Skip to content

Commit

Permalink
Changed v2 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Jan 25, 2020
1 parent 6605c06 commit 44a2b78
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions docs/flysystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ fm_elfinder:
url: 'http://[my-bucket-name].s3.[region].amazonaws.com'
tmb_url: 'self' # For thumbnail generation on aws
flysystem:
type: aws_s3_v2
type: aws_s3_v3
options:
aws_s3_v2:
aws_s3_v3:
verion: 'latest'
key: 'MY_AWS_KEY'
secret: 'MY_AWS_SECRET'
Expand All @@ -83,19 +83,21 @@ fm_elfinder:
connector:
debug: false
roots:
aws_s3:
driver: Flysystem
url: %aws.cdn.content.url%
flysystem:
type: aws_s3_v2
options:
aws_s3_v2:
key: %aws.key%
secret: %aws.secret%
region: %aws.region%
bucket_name: %aws.cdn.content.bucket%
upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
upload_deny: ['all']
aws_s3:
driver: Flysystem
path: uploads
url: 'http://[my-bucket-name].s3.[region].amazonaws.com'
tmb_url: 'self' # For thumbnail generation on aws
flysystem:
type: aws_s3_v3
options:
aws_s3_v3:
verion: 'latest'
key: 'MY_AWS_KEY'
secret: 'MY_AWS_SECRET'
region: 'MY_AWS_REGION'
bucket_name: 'MY_BUCKET_NAME'
upload_allow: ['all']
```
In that case you use an S3 domain so the **relative_path** have to be false and the url have to be set to your S3 or Cloudfront Domain if you have mapped S3 directly to your filesystem wirk with the relative path.
Expand Down

0 comments on commit 44a2b78

Please sign in to comment.