ipfs-repo
Version:
IPFS Repo implementation
31 lines (29 loc) • 618 B
JavaScript
// Default configuration for the datastore spec in node.js
export default {
Spec: {
type: 'mount',
mounts: [
{
mountpoint: '/blocks',
type: 'measure',
prefix: 'flatfs.datastore',
child: {
type: 'flatfs',
path: 'blocks',
sync: true,
shardFunc: '/repo/flatfs/shard/v1/next-to-last/2'
}
},
{
mountpoint: '/',
type: 'measure',
prefix: 'leveldb.datastore',
child: {
type: 'levelds',
path: 'datastore',
compression: 'none'
}
}
]
}
}