matrix-dimension/src/config.ts

38 lines
788 B
TypeScript
Raw Normal View History

import * as config from "config";
import { LogConfig } from "matrix-js-snippets";
export interface DimensionConfig {
web: {
port: number;
address: string;
};
homeserver: {
name: string;
accessToken: string;
clientServerUrl: string;
federationUrl: string;
mediaUrl: string;
};
widgetBlacklist: string[];
database: {
file: string;
botData: string;
};
admins: string[];
goneb: {
avatars: {
[botType: string]: string; // mxc
};
};
telegram: {
botToken: string;
};
stickers: {
enabled: boolean;
stickerBot: string;
managerUrl: string;
};
logging: LogConfig;
}
export default <DimensionConfig>config;