-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.toml
59 lines (49 loc) · 1.17 KB
/
config.toml
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
jwt_secret = "dev-secret"
internal_jwt_ttl = 10 # seconds
cache_ttl = 600 # seconds
[database]
url = "postgres://postgres@localhost:5432/academy-challenges"
connect_timeout = 5 # seconds
[redis]
auth = "redis://localhost:6379/0"
skills = "redis://localhost:6379/1"
shop = "redis://localhost:6379/2"
jobs = "redis://localhost:6379/3"
events = "redis://localhost:6379/4"
challenges = "redis://localhost:6379/5"
[services]
auth = "http://localhost:8000"
skills = "http://localhost:8001"
shop = "http://localhost:8002"
jobs = "http://localhost:8003"
events = "http://localhost:8004"
challenges = "http://localhost:8005"
[challenges]
host = "127.0.0.1"
port = 8005
server = "/"
# [challenges.sentry]
# dsn = ""
[challenges.quizzes]
min_level = 5
max_xp = 5
max_coins = 0
ban_days = [3, 7, 30]
[challenges.multiple_choice_questions]
timeout = 2 # seconds
hearts = 1
creator_coins = 1
[challenges.questions]
timeout = 2 # seconds
hearts = 1
creator_coins = 1
[challenges.matchings]
timeout = 2 # seconds
hearts = 1
creator_coins = 1
[challenges.coding_challenges]
sandkasten_url = "https://sandkasten.bootstrap.academy"
max_concurrency = 2
timeout = 10 # seconds
hearts = 2
creator_coins = 10