-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.json
67 lines (67 loc) · 1.57 KB
/
server.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"host": "localhost",
"port": 3000,
"timeout": 10,
"maintainer": {
"name": "David Waring",
"email": "[email protected]",
"source": "https://github.com/right-track/right-track-server"
},
"database": {
"host": "127.0.0.1",
"username": "mysql_username",
"password": "mysql_password",
"name": "rt_api"
},
"mail": {
"from": {
"feedback": "Right Track Feedback <[email protected]>",
"email_verification": "Right Track Email Verification <[email protected]>",
"password_reset": "Right Track Password Reset <[email protected]>"
},
"smtp": {
"host": "",
"port": 587,
"secure": false,
"auth": {
"user": "",
"pass": ""
}
}
},
"cors": {
"origins": ["*"],
"methods": "HEAD, GET, POST, PUT, DELETE, OPTIONS",
"headers": "content-type,authorization,x-session-token",
"maxAge": 86400
},
"agencies": [],
"transit": [],
"registration": {
"username": {
"cannotContain": "@ ",
"minLength": 4,
"maxLength": 64
},
"password": {
"minLength": 8,
"maxLength": 128,
"requireLetters": true,
"requireUppercase": false,
"requireLowercase": false,
"requireDigits": true,
"requireSymbols": false,
"blockUsername": true,
"blacklist": "./static/password-blacklist.txt"
}
},
"search": {
"allowTransfers": true,
"allowChangeInDirection": true,
"preDepartureHours": 3,
"postDepartureHours": 6,
"maxLayoverMins": 30,
"minLayoverMins": 0,
"maxTransfers": 2
}
}