2023-09-10 12:59:22 +01:00
|
|
|
export default interface Config {
|
|
|
|
http:HttpConfigSection,
|
2022-11-27 17:36:55 +00:00
|
|
|
prometheus:PrometheusConfigSection,
|
|
|
|
redis:RedisConfigSection,
|
|
|
|
database:DatabaseConfigSection
|
|
|
|
}
|
|
|
|
|
2023-09-10 12:59:22 +01:00
|
|
|
interface HttpConfigSection {
|
2022-11-27 17:36:55 +00:00
|
|
|
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
|
|
|
|
}
|