43 lines
760 B
TypeScript
43 lines
760 B
TypeScript
export interface Config {
|
|
wss_port: number,
|
|
authentication: {
|
|
server: {
|
|
username: string;
|
|
password: string;
|
|
};
|
|
client: {
|
|
username: string;
|
|
password: string;
|
|
};
|
|
};
|
|
logger: {
|
|
level: string;
|
|
error_path: string;
|
|
full_path: string;
|
|
timestamp_format: string;
|
|
};
|
|
timeout: number;
|
|
}
|
|
|
|
const config: Config = {
|
|
wss_port: 3000,
|
|
authentication: {
|
|
server: {
|
|
username: "superuser",
|
|
password: "password",
|
|
},
|
|
client: {
|
|
username: "user",
|
|
password: "password",
|
|
},
|
|
},
|
|
logger: {
|
|
level: "info",
|
|
error_path: "./logs/error.log",
|
|
full_path: "./logs/combined.log",
|
|
timestamp_format: "HH:mm:ss DD-MM-YYYY",
|
|
},
|
|
timeout: 5000
|
|
};
|
|
|
|
export default config; |