Skip to content

Commit 45f9f36

Browse files
committed
docs: update docs for the s3 compatible storage adapter
AdminForth/1703/make-s3-adapter-support-url-pa
1 parent cfb19b9 commit 45f9f36

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

adminforth/documentation/docs/tutorial/06-Adapters/04-storage-adapters.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ R2_BUCKET_REGION=auto
5656
region: process.env.R2_BUCKET_REGION as string,
5757
s3ACL: "private",
5858
cleanupKeyValueAdapter: new LevelDBKeyValueAdapter({
59-
dbPath: './stores/cloudflare_r2_storage_keys',
60-
}),
59+
// ensure /stores/ folder is a persisted/backed up point, if you running in docker ensure ensure you mount /stores/ as volume
60+
dbPath: process.env.NODE_ENV === production ? '/stores/cloudflare_r2_storage_keys' : './cloudflare_r2_storage_keys',
61+
});,
6162
forcePathStyle: true,
6263
cleanupCheckInterval: '30m',
6364
cleanupGracePeriod: '5d'
@@ -88,7 +89,8 @@ R2_BUCKET_REGION=auto
8889
region: 'us-east-1',
8990
s3ACL: 'private',
9091
cleanupKeyValueAdapter: new LevelDBKeyValueAdapter({
91-
dbPath: './stores/minio_storage_keys',
92+
// ensure /stores/ folder is a persisted/backed up point, if you running in docker ensure ensure you mount /stores/ as volume
93+
dbPath: process.env.NODE_ENV === production ? '/stores/minio_storage_keys' : './minio_storage_keys',
9294
}),
9395
forcePathStyle: true,
9496
cleanupCheckInterval: '30m',

0 commit comments

Comments
 (0)