2018-08-11 01:42:06 +00:00
|
|
|
type Config = {
|
|
|
|
host: string;
|
|
|
|
i: string;
|
2020-09-12 10:46:33 +00:00
|
|
|
master?: string;
|
2018-08-11 01:42:06 +00:00
|
|
|
wsUrl: string;
|
|
|
|
apiUrl: string;
|
2018-08-13 08:54:56 +00:00
|
|
|
keywordEnabled: boolean;
|
2018-08-11 01:42:06 +00:00
|
|
|
reversiEnabled: boolean;
|
2019-06-15 14:49:11 +00:00
|
|
|
chartEnabled: boolean;
|
2018-10-08 18:22:09 +00:00
|
|
|
serverMonitoring: boolean;
|
2018-08-13 09:17:38 +00:00
|
|
|
mecab?: string;
|
2018-08-11 01:42:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const config = require('../config.json');
|
|
|
|
|
|
|
|
config.wsUrl = config.host.replace('http', 'ws');
|
|
|
|
config.apiUrl = config.host + '/api';
|
|
|
|
|
|
|
|
export default config as Config;
|