ezsystems/ezdfs-fsbackend-aws-s3
Composer 安装命令:
composer require ezsystems/ezdfs-fsbackend-aws-s3
包简介
eZPublish Amazon S3 FS backend for DFS
README 文档
README
Summary
An AmazonS3 DFS FS handler is added to the existing local filesystem one.
The previous eZDFSFileHandlerDFSBackend, in charge of reading/writing files to NFS, is in DFS replaced by a dispatcher.
This dispatcher receives a stack of DFSBackend handlers. Each handler will respond true/false when asked if it supports
a file path.
An AmazonS3 handler is provided, that can be configured to store images.
Installation
Requirements
- ezsystems/ezdfs-fsbackend-dispatcher must be installed
- An amazon web services account, with
AmazonS3FullAccesspermissions like eZ Platform's S3 IO handler - ezsystems/ezpublish-legacy >= v2017.12 (Or any ezpublish 5+ version with the patch: https://github.com/ezsystems/ezpublish-legacy/pull/1449/files)
Installation using composer
From the eZ Publish Community/Platform root, run
$ composer require ezsystems/ezdfs-fsbackend-aws-s3:~2.0@beta ezsystems/ezdfs-fsbackend-dispatcher:~1.0@beta
Configuration
The handler must first be configured in an dfsamazons3.ini override. Region must be set to the region code, as listed on http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region: eu-west-1, us-east-1...
Example settings/overrride/dfsamazons3.ini.append.php:
<?php /* #?ini charset="utf-8"? [BackendSettings] # NOTE: If credentials are not set S3Client will attempt to load them from your environment AccessKeyID=<credentials.key> SecretAccessKey=<credentials.secret> Bucket=<your-bucket> Region=eu-west-1 # Version=latest */ ?>
It must then be be set as an additional handler matching one or several path in a dispatchabledfs.ini override:
[DispatchableDFS]
PathBackends[var/ezdemo_site/storage/images]=eZDFSFileHandlerDFSAmazon
Known issues
When setting up Legacy Bridge, don't forget to follow the documentation here: https://doc.ezplatform.com/en/latest/guide/clustering_aws_s3/ .
If your images are not displayed properly, check the value of url_prefix:
ezpublish:
system:
default:
io:
url_prefix: 'https://my-bucket.s3.my-region.amazonaws.com/$var_dir$/$storage_dir$'
ezsystems/ezdfs-fsbackend-aws-s3 适用场景与选型建议
ezsystems/ezdfs-fsbackend-aws-s3 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.72k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2014 年 06 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ezsystems/ezdfs-fsbackend-aws-s3 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ezsystems/ezdfs-fsbackend-aws-s3 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2014-06-11