This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathconfig-example.json
90 lines (90 loc) · 2.2 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
{
"logger": {
"level": "debug"
},
"cookie": {
"secret": "its-a-secret",
"ttl": 14
},
"upload": {
"limit": 10
},
"schedule": {
"offset": 0,
"interval": 15
},
"mongoose": {
"uri": "mongodb://localhost:27017/proctor"
},
"ws": {
"uri": "ws://localhost:8888/kurento"
},
"recorder": {
"uri": "file:///tmp/"
},
"storage": {
"uri": "/tmp"
},
"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
}
}
}
}