forked from meefik/ITMOproctor
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig-example.json
108 lines (108 loc) · 3.24 KB
/
config-example.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"logger": {
"level": "debug",
"dirname": "logs",
"filename": "output-%DATE%.log"
},
"cookie": {
"secret": "its-a-secret",
"ttl": 14
},
"upload": {
"limit": 10
},
"schedule": {
"offset": 0,
"interval": 10,
"examOffset": 15
},
"mongoose": {
"uri": "mongodb://localhost:27017/proctor"
},
"ws": {
"uri": "ws://localhost:8888/kurento"
},
"recorder": {
"uri": "file:///tmp/"
},
"storage": {
"uri": "http://localhost/webdav/",
"timeout": 10000,
"username": "proctor",
"password": "proctor"
},
"auth": {
"openedu": {
"authorizationURL": "https://sso.openedu.ru/oauth2/authorize",
"tokenURL": "https://sso.openedu.ru/oauth2/access_token",
"userProfileURL": "https://sso.openedu.ru/users/me?format=json",
"clientID": "123-456-789",
"clientSecret": "its-a-secret",
"callbackURL": "http://localhost:3000/profile/openedu/callback"
},
"ifmosso": {
"secretKey": "its-a-secret"
}
},
"api": {
"local": {
"template": "db/exams.json"
},
"openedu": {
"apiKey": "its-a-secret",
"coursePattern": ":ITMOUniversity",
"requestExams": "https://courses.openedu.ru/api/extended/user_proctored_exams/{username}/?format=json",
"startExam": "https://courses.openedu.ru/api/edx_proctoring/proctoring_launch_callback/start_exam/{examCode}",
"examStatus": "https://courses.openedu.ru/api/edx_proctoring/proctoring_poll_status/{examCode}?format=json",
"stopExam": "https://courses.openedu.ru/api/edx_proctoring/proctoring_review_callback/",
"data": "db/data.json"
}
},
"rest": {
"access_token": {
"exam": {
"read": {
"populate": [{
"path": "inspector",
"select": "username firstname lastname middlename"
}, {
"path": "student",
"select": "username firstname lastname middlename birthday"
}],
"select": {
"verified": 0
}
}
},
"schedule": {
"read": {
"populate": [{
"path": "inspector",
"select": "firstname lastname middlename"
}],
"select": false
},
"create": true,
"update": true,
"delete": true
}
}
},
"bots": {
"enable": false,
"delay": 120,
"lang": "ru",
"telegram": {
"enable": false,
"token": "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11",
"chatId": "-1234567890123",
"useProxy": false,
"proxy": {
"socksHost": "host",
"socksPort": 1080,
"socksUsername": "username",
"socksPassword": "password"
}
}
}
}