File tree Expand file tree Collapse file tree
adminforth/documentation/docs/tutorial/06-Adapters Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments