everything

This commit is contained in:
elijahr2411
2023-01-31 22:00:30 -05:00
commit 3235375581
14 changed files with 919 additions and 0 deletions

46
src/IConfig.ts Normal file
View File

@@ -0,0 +1,46 @@
export default interface IConfig {
http : {
host : string;
port : number;
proxying : boolean;
proxyAllowedIps : string[];
};
vm : {
qemuArgs : string;
vncPort : number;
snapshots : boolean;
qmpSockDir : string;
};
collabvm : {
node : string;
displayname : string;
motd : string;
bancmd : string;
moderatorEnabled : boolean;
usernameblacklist : string[];
maxChatLength : number;
automute : {
enabled: boolean;
seconds: number;
messages: number;
};
tempMuteTime : number;
turnTime : number;
adminpass : string;
modpass : string;
moderatorPermissions : Permissions;
};
};
export interface Permissions {
restore : boolean;
reboot : boolean;
ban : boolean;
forcevote : boolean;
mute : boolean;
kick : boolean;
bypassturn : boolean;
rename : boolean;
grabip : boolean;
xss : boolean;
}