Skip to content

Commit c2fa8dd

Browse files
authored
Ability to adjust IPFS max datastore (#717)
1 parent 673e78a commit c2fa8dd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
set -e
3+
4+
if [ "${IPFS_DEBUG}" == "true" ]; then
5+
set -x
6+
fi
7+
8+
if [ -n "${IPFS_DATASTORE_STORAGEMAX}" ]; then
9+
ipfs config Datastore.StorageMax "${IPFS_DATASTORE_STORAGEMAX}"
10+
fi
11+
12+
if [ -N "${IPFS_DATASTORE_STORAGEGCWATERMARK}" ]; then
13+
ipfs config Datastore.StorageGCWatermark "${IPFS_DATASTORE_STORAGEGCWATERMARK}"
14+
fi
15+
16+
if [ -n "${IPFS_DATASTORE_GCPERIOD}" ]; then
17+
ipfs config Datastore.GCPeriod "${IPFS_DATASTORE_GCPERIOD}"
18+
fi

0 commit comments

Comments
 (0)