chore: 更新依赖并支持从 etcd 读取配置。

This commit is contained in:
2021-10-28 22:07:29 +08:00
parent 6cf4d1b748
commit ece8ccf27a
7 changed files with 9468 additions and 14994 deletions

View File

@@ -1,9 +1,9 @@
import { readFileSync } from 'fs';
import * as yaml from 'js-yaml';
import { join } from 'path';
import { readConfiguration } from '@fennec/configuration';
export default () => {
return yaml.load(
readFileSync(join(__dirname, '../../../config.yml'), 'utf8'),
) as unknown;
return readConfiguration({
etcd: {
hosts: '192.168.31.2:2379',
},
});
};