You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cloudflare R2 is compatible with the AWS S3 API, meaning that you can use the same configuration
164
+
as for a AWS storage. For example:
165
+
166
+
```yaml
167
+
# config/packages/flysystem.yaml
168
+
169
+
services:
170
+
cloudflare_r2_client:
171
+
class: 'AsyncAws\S3\S3Client'
172
+
arguments:
173
+
-
174
+
endpoint: '%env(CLOUDFLARE_R2_ENDPOINT)%'
175
+
accessKeyId: '%env(CLOUDFLARE_R2_ID)%'
176
+
accessKeySecret: '%env(CLOUDFLARE_R2_SECRET)%'
177
+
178
+
flysystem:
179
+
storages:
180
+
cdn.storage:
181
+
adapter: 'asyncaws'
182
+
options:
183
+
client: 'cloudflare_r2_client'
184
+
bucket: '%env(CLOUDFLARE_R2_BUCKET)%'
185
+
```
186
+
160
187
## Next
161
188
162
189
[Interacting with FTP and SFTP servers](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/3-interacting-with-ftp-and-sftp-servers.md)
0 commit comments