Skip to content

JarJak/bolt-amazon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon AWS S3 Integration

Provides AWS Storage as a Filesystem so all uploaded files, images and thumbs will be saved there. Those assets will be still served through Bolt's proxy.

Requirements

AWS S3 Account.

Also please have a look at composer.json and install required (and even suggested) packages:

    "require": {
        "league/flysystem-aws-s3-v3": "^1.0",
        "league/flysystem-cached-adapter": "^1.0"
    },
    "suggest": {
        "predis/service-provider": "For better caching",
        "predis/predis": "For better caching"
    },

Configuration

After installation, a configuration file will be created as app/config/extensions/amazon.jarjak.yml, where you have to update fields with your S3 bucket config. You can also configure everything through env variables (see .env.dist file).

Mandatory options are:

  • bucket_region
  • bucket_name

For auth it uses env variables (those can't be set through yaml config):

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Because of efficiency problem you can use limit for file listings by env variable:

  • AWS_FILE_LIST_LIMIT

It defaults to 1000 files in single folder.

Using Redis as cache

This extension needs a Cache Driver, which can be Redis or just Array.

If you have RedisClient but you haven't configured it yet (registered as predis_cache), it will create one for you with the following env variables:

  • REDIS_HOST
  • REDIS_PORT
  • REDIS_PREFIX

About

Move Bolt images and files to Amazon S3 Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages