nailsapp / driver-cdn-google-cloud-storage
0.1.0
2017-03-02 14:45 UTC
Requires
- google/cloud: ~0.21.1
- nailsapp/module-cdn: dev-develop
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2022-02-01 13:05:46 UTC
README
这是Nails CDN模块的Google Cloud Storage驱动程序,它允许CDN使用Google存储桶作为存储机制。
安装
composer require nails/driver-cdn-google
## 配置
可以通过管理员界面启用和配置此驱动程序。
凭证
为了让SDK能够正确地与Google进行身份验证,需要为应用程序创建一个“服务帐户”。您可以在云控制台中完成此操作
https://console.cloud.google.com/apis/credentials
下载并安全保存密钥,然后通过在设置中粘贴文件的完整内容或将文件放在服务器上并在驱动程序设置中设置文件路径的方式使驱动程序可用。