Skip to content

Instantly share code, notes, and snippets.

@5quinque
Created July 18, 2020 21:13
Show Gist options
  • Save 5quinque/ae513fbbda5953c8cec8d2e74acdad63 to your computer and use it in GitHub Desktop.
Save 5quinque/ae513fbbda5953c8cec8d2e74acdad63 to your computer and use it in GitHub Desktop.
# Read the documentation: https://github.com/1up-lab/OneupFlysystemBundle/tree/master/Resources/doc/index.md
# https://symfony.com/doc/2.0/bundles/LiipImagineBundle/data-loader/flysystem.html
oneup_flysystem:
adapters:
default_adapter:
local:
directory: '%kernel.project_dir%/var/storage/default'
acme.flysystem_adapter:
awss3v3:
client: acme.s3_client
bucket: '%env(AWS_S3_BUCKET)%'
prefix: ~
options:
ACL: 'public-read'
filesystems:
s3:
adapter: acme.flysystem_adapter
alias: League\Flysystem\Filesystem
mount: s3_filesystem
local:
adapter: default_adapter
mount: local_filesystem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment