mirror of
https://github.com/syuilo/ai.git
synced 2024-11-15 02:08:00 +00:00
23 lines
450 B
TypeScript
23 lines
450 B
TypeScript
type Config = {
|
|
host: string;
|
|
i: string;
|
|
master?: string;
|
|
wsUrl: string;
|
|
apiUrl: string;
|
|
keywordEnabled: boolean;
|
|
reversiEnabled: boolean;
|
|
notingEnabled: boolean;
|
|
chartEnabled: boolean;
|
|
serverMonitoring: boolean;
|
|
mecab?: string;
|
|
mecabDic?: string;
|
|
memoryDir?: string;
|
|
};
|
|
|
|
const config = require('../config.json');
|
|
|
|
config.wsUrl = config.host.replace('http', 'ws');
|
|
config.apiUrl = config.host + '/api';
|
|
|
|
export default config as Config;
|