-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
53 lines (51 loc) · 1.3 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { CryptoUnits } from './src/helper/types';
/**
* Here you can change various settings like database credentials, http settings and more.
*
* Debug mode and MongoDB credentials 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: 2009,
host: "0.0.0.0"
},
transcations: {
// If a payment has been made and its value is this amount less, it would be still accepted.
acceptMargin: 0.00000001
},
payment: {
// This has to stay empty since it will be filled automatically in runtime.
// If you want to accept a specifc cryptocurrency, add a provider in src/helper/providers
methods: []
}
}
/**
* END OF CONFIG
* ====================
*/
export interface IConfig {
authentification: {
pepper: string,
salt_length: number,
argonTimecost: number,
minPasswordLength: number,
maxPasswordLength: number
},
http: {
port: number,
host: string
},
transcations: {
acceptMargin: number
},
payment: {
methods: CryptoUnits[];
}
}