2024-04-19 18:08:18 -05:00
|
|
|
const { Level } = require('level');
|
|
|
|
|
2024-04-23 20:01:49 -05:00
|
|
|
const dataDir = process.env.LEVEL_DATA_DIR || 'data';
|
2024-04-19 18:08:18 -05:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
forum: new Level(`${dataDir}/forum`, { valueEncoding: 'json' }),
|
|
|
|
authorAddresses: new Level(`${dataDir}/authorAddresses`, { valueEncoding: 'utf8' }),
|
|
|
|
authorPrivKeys: new Level(`${dataDir}/authorPrivKeys`, { valueEncoding: 'utf8' }),
|
|
|
|
};
|