Initial commit
This commit is contained in:
32
backend/config.ts
Normal file
32
backend/config.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Here you can change various settings like database credentials, http settings and more.
|
||||
*
|
||||
* Debug mode and MongoDB connections are set via enviroment variables for security reasons.
|
||||
*/
|
||||
export const config: IConfig = {
|
||||
authentification: {
|
||||
pepper: 'J3%_zö\\^',
|
||||
salt_length: 8,
|
||||
argonTimecost: 8,
|
||||
minPasswordLength: 4,
|
||||
maxPasswordLength: 150
|
||||
},
|
||||
http: {
|
||||
port: 8040,
|
||||
host: "0.0.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
export interface IConfig {
|
||||
authentification: {
|
||||
pepper: string,
|
||||
salt_length: number,
|
||||
argonTimecost: number,
|
||||
minPasswordLength: number,
|
||||
maxPasswordLength: number
|
||||
},
|
||||
http: {
|
||||
port: number,
|
||||
host: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user