nassau / kunstmaan-static-site-s3-backend
S3 后端用于 Kunstmaan 静态站点扩展包
0.1
2016-12-14 14:51 UTC
Requires
This package is auto-updated.
Last update: 2024-09-23 19:21:47 UTC
README
安装
composer require nassau/kunstmaan-static-site-s3-backend
配置
# app/config.yml kunstmaan_static_site_s3_backend: access_key: AWS_ACCESS_KEY access_secret: AWS_ACCESS_SECRET buckets: default: bucket_name: foobar-bucket target_path: / acl: public-read other_bucket: access_key: CUSTOM_AWS_ACCESS_KEY access_secret: CUSTOM_AWS_ACCESS_SECRET bucket_name: other-bucket target_path: /docs
使用方法
您现在可以使用 s3:
方案直接将静态站点导出到 S3 存储桶。
app/console nassau:static-site:dump s3:
将使用“默认”存储桶值,但如果需要,您也可以覆盖它们。
app/console nassau:static-site:dump s3://key:secret@bucket-name-or-config-name/custom-target-path