Binato/server/interfaces/Config.ts
2023-09-10 12:59:22 +01:00

39 lines
No EOL
661 B
TypeScript

export default interface Config {
http:HttpConfigSection,
prometheus:PrometheusConfigSection,
redis:RedisConfigSection,
database:DatabaseConfigSection
}
interface HttpConfigSection {
port:number,
compression:boolean
}
interface PrometheusConfigSection {
enabled:boolean,
port:number
}
interface RedisConfigSection {
enabled:boolean,
address:string,
port:number,
database:number,
password:string
}
interface DatabaseConfigSection {
address:string,
port:number,
username:string,
password:string,
name:string,
pbkdf2:PBKDF2DatabaseConfigSection,
key:string
}
interface PBKDF2DatabaseConfigSection {
itterations:number,
keylength:number
}