39 lines
No EOL
661 B
TypeScript
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
|
|
} |