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
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/06-Adapters/04-storage-adapters.md
+79-3Lines changed: 79 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,91 @@ Used for storing files.
11
11
## Amazon S3 Storage Adapter
12
12
13
13
```bash
14
-
pnpm i @adminforth/storage-adapter-amazon-s3
14
+
pnpm add @adminforth/storage-adapter-amazon-s3
15
15
```
16
16
17
-
Stores uploaded files in [Amazon S3](https://aws.amazon.com/s3/), providing scalable cloud storage. It can be forked and customized to work with S3-compatible services such as MinIO, Wasabi, or other third-party S3 providers.
17
+
Stores uploaded files in [Amazon S3](https://aws.amazon.com/s3/), providing scalable cloud storage.
Provides S3 compatible interface for object storage services such as MinIO, Wasabi, Cloudflare R2 or other third-party S3 providers.
25
+
26
+
27
+
### Cloudflare R2 setup example
28
+
29
+
This adapter requires key/value adapter. For example, we will be using levelDb adapter.
30
+
>‼️Since levelDb is used for storing keys of objects, that should/shouldn't be deleted, so this is important to use docker volume on deployed application, so you will not loose this data after re-deploy
31
+
```bash
32
+
pnpm add @adminforth/key-value-adapter-leveldb
33
+
```
34
+
35
+
1) Go to the [Cloudflare dashboard](https://dash.cloudflare.com/) and create new bucket. Get bucket URL.
Stores files locally on the server filesystem. It is suitable for development or small self-hosted setups, but cloud storage is generally a better production option for reliability and scalability.
0 commit comments