hyperdrive-daemon-client
Version:
A client library and CLI tool for interacting with the Hyperdrive daemon.
33 lines (28 loc) • 900 B
JavaScript
const p = require('path')
const os = require('os')
const DAEMON_ROOT = p.join(os.homedir(), '.hyperdrive')
const HIDDEN_MOUNTPOINT = p.join(DAEMON_ROOT, 'mnt')
const MOUNTPOINT = p.join(os.homedir(), 'Hyperdrive')
const HOMEDIR = p.join(MOUNTPOINT, 'home')
module.exports = {
uid: 'hyperdrive',
processName: 'hyperdrive',
port: 3101,
logLevel: 'debug',
heapSize: 4096,
bootstrap: [],
mountpoint: MOUNTPOINT,
hiddenMountpoint: HIDDEN_MOUNTPOINT,
networkPath: p.join(MOUNTPOINT, 'Network'),
home: HOMEDIR,
root: DAEMON_ROOT,
storage: p.join(DAEMON_ROOT, 'storage'),
metadata: p.join(DAEMON_ROOT, 'config.json'),
unstructuredLog: p.join(DAEMON_ROOT, 'output.log'),
structuredLog: p.join(DAEMON_ROOT, 'log.json'),
env: {
endpoint: process.env['HYPERDRIVE_ENDPOINT'],
token: process.env['HYPERDRIVE_TOKEN'],
storage: process.env['HYPERDRIVE_STORAGE']
}
}