2017-12-17 21:22:09 -05:00
|
|
|
import * as config from "config";
|
|
|
|
import { LogConfig } from "matrix-js-snippets";
|
|
|
|
|
|
|
|
export interface DimensionConfig {
|
|
|
|
web: {
|
|
|
|
port: number;
|
|
|
|
address: string;
|
|
|
|
};
|
|
|
|
homeserver: {
|
|
|
|
name: string;
|
|
|
|
accessToken: string;
|
2018-03-24 19:09:34 -04:00
|
|
|
clientServerUrl: string;
|
|
|
|
federationUrl: string;
|
2018-05-12 23:55:02 -04:00
|
|
|
mediaUrl: string;
|
2017-12-17 21:22:09 -05:00
|
|
|
};
|
|
|
|
widgetBlacklist: string[];
|
|
|
|
database: {
|
|
|
|
file: string;
|
2019-03-20 23:24:16 -04:00
|
|
|
botData: string;
|
2017-12-17 21:22:09 -05:00
|
|
|
};
|
|
|
|
admins: string[];
|
2018-04-01 00:01:23 -04:00
|
|
|
goneb: {
|
|
|
|
avatars: {
|
|
|
|
[botType: string]: string; // mxc
|
|
|
|
};
|
|
|
|
};
|
2018-12-22 19:37:31 -05:00
|
|
|
telegram: {
|
|
|
|
botToken: string;
|
|
|
|
};
|
2019-03-21 01:53:10 -04:00
|
|
|
stickers: {
|
|
|
|
enabled: boolean;
|
|
|
|
stickerBot: string;
|
|
|
|
managerUrl: string;
|
|
|
|
};
|
2017-12-17 21:22:09 -05:00
|
|
|
logging: LogConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default <DimensionConfig>config;
|