Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shopware5/SwagMediaS3
https://github.com/shopware5/SwagMediaS3
s3 shopware shopware-plugin
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shopware5/SwagMediaS3
- Owner: shopware5
- License: mit
- Created: 2015-09-14T07:16:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T11:47:18.000Z (about 6 years ago)
- Last Synced: 2024-05-18T17:54:34.469Z (6 months ago)
- Topics: s3, shopware, shopware-plugin
- Language: PHP
- Size: 28.3 KB
- Stars: 22
- Watchers: 21
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-shopware - S3 - Amazon S3 Media adapter. (Media Adapter)
README
Amazon S3 Adapter for Shopware
==============================.. image:: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
:target: LICENSE.mdThe Amazon S3 adapter allows you to manage your media files in shopware on an Amazon S3 account. In addition, you can use Amazon CloudFront for delivering your files.
Building a package
------------------Just run ``./build.sh``.
Install
-------Download the plugin from the release page and enable it in shopware.
Usage
-----Update your ``config.php`` in your root directory and fill in your own values::
'cdn' => [
'backend' => 's3',
'adapters' => [
's3' => [
'type' => 's3',
'mediaUrl' => 'YOUR_S3_OR_CLOUDFRONT_ENDPOINT',
'key' => 'YOUR_AWS_KEY',
'secret' => 'YOUR_AWS_SECRET',
'region' => 'YOUR_S3_REGION',
'bucket' => 'YOUR_S3_BUCKET_NAME',
'prefix' => ''
]
]
]Using IAM roles in EC2
----------------------To make use of your configured IAM roles, omit the array keys `key` and `secret` or leave them empty. The plugin will retrieve the credentials from the EC2 metadata service automatically.
Value explanation
-----------------type (required)
Adapter type. Do not change.mediaUrl (required)
URL to access your media files. Usually your S3, CloudFront or custom domain endpointe.g.: ``https://your-bucket-name.s3-website.eu-central-1.amazonaws.com/``
region (required)
The S3 region, e.g. ``eu-central-1``bucket (required)
Your S3 bucket namekey
Your Access Key IDsecret
Your Secret Access Keyprefix
An optional path prefix for your media filesendpoint
Sets the S3 endpoint specifically (e.g. non-AWS S3)metaOptions
Allows setting options per file specific to `Flysystem S3 Adapter `_License
-------The MIT License (MIT). Please see `License File `_ for more information.