项目作者: FriendsOfShopware

项目描述 :
This shopware6 plugin allows you to manage your media files in shopware on a bunnyCDN-Storage.
高级语言: PHP
项目地址: git://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage.git
创建时间: 2019-12-23T18:27:52Z
项目社区:https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage

开源协议:MIT License

下载


BunnyCDN Adapter for Shopware 6

Software License Shopware Store

The BunnyCDN adapter allows you to manage your media files in shopware on a bunnyCDN-Storage.

Install

By composer

  1. composer require frosh/platform-bunnycdn-media-storage

By zip

download latest release and upload into admin:
https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage/releases/latest/download/FroshPlatformBunnycdnMediaStorage.zip

Usage

  • Upload existing media (optional)

  • Install and activate the plugin.

  • Configure the filesystems in your config/packages/shopware.yml. Check the Shopware documentation for additional information.

    • Possible configurations for filesystem type bunnycdn:

      • endpoint: The endpoint of your storage zone
      • apiKey: The FTP Password of your storage zone
      • storageName: The name of your storage zone
      • replicationRoot (optional): Setting this path will write files also into known local folders. This negates the advantage of saving locally storage. This needs to be an absolute path.
      • root (optional): The root/subfolder within your storage zone.
      • useGarbage (optional): When set to true, deleted, renamed and overwritten files are also saved to a folder named garbage/[currentDate]/.
      • neverDelete (optional): When set to true, deleting files will not use garbage option, too. Attention: This will result in more storage usage and orphaned files in storage.

      • Example with filesystems public and sitemap saved into bunnycdn:

        1. shopware:
        2. cdn:
        3. url: "https://my-really-cool-company.b-cdn.net"
        4. filesystem:
        5. public: &bunnycdn
        6. type: "bunnycdn"
        7. url: "https://my-really-cool-company.b-cdn.net"
        8. config:
        9. endpoint: "https://storage.bunnycdn.com"
        10. apiKey: "secret-ftp-password"
        11. storageName: "my-really-cool-company"
        12. useGarbage: true
        13. sitemap:
        14. <<: *bunnycdn
        15. theme:
        16. type: "local"
        17. url: ""
        18. config:
        19. root: "%kernel.project_dir%/public"
        20. asset:
        21. type: "local"
        22. url: ""
        23. config:
        24. root: "%kernel.project_dir%/public"

Recommendations and warnings

  • Before Shopware 6.6.8.0 and plugin version 3.4.0: Don’t store theme or asset files on external storage. Due to some improvements in shopware with 6.5 and 6.6 there are created many files. This is the reason why this would slow down theme compilation and asset installation significantly.
  • Utilize storage zones with SSDs as they are significantly faster than standard option (means HDDs), with up to 80x faster upload speeds in our tests.

Suggestions

License

The MIT License (MIT). Please see License File for more information.