mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 04:07:15 +09:00
* memory.jsonの保存先をdata以下にする * Dockerで動くようにする * 余計な空行を削除 * 余分なファイルをコンテナに追加しないようにする * memory.jsonの保存先を変えられるようにする * DockerでMeCabのインストールの有無を切り替えられるようにする
23 lines
451 B
TypeScript
23 lines
451 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;
|
|
memoryPath?: string;
|
|
};
|
|
|
|
const config = require('../config.json');
|
|
|
|
config.wsUrl = config.host.replace('http', 'ws');
|
|
config.apiUrl = config.host + '/api';
|
|
|
|
export default config as Config;
|