-
Notifications
You must be signed in to change notification settings - Fork 19
/
cs.test.conf
49 lines (49 loc) · 1.69 KB
/
cs.test.conf
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
{ hypnotoad => {listen => ['http://127.0.0.1:8080'], workers => 8},
postgres_uri => 'postgresql://postgres:qwer@pg/cs_test',
cs => {
time => [['2013-01-01 00:00:00', '2013-01-01 20:00:00'], ['2013-01-02 00:00:00', '2028-03-08 23:59:59']],
admin_auth => 'root:qwer',
ctf_name => 'RuCTF 2015 test mode',
round_length => 30,
flag_life_time => 2,
flags_secret => 'eiK3Oh',
checkers => {
hostname => sub { my ($team, $service) = @_; "$service->{name}.$team->{host}" }
},
scoring => {
start_flag_price => 10,
heating_speed => 1/12,
max_flag_price => 30,
cooling_down => 1/2,
heating_flags_limit => 1,
cooling_submissions_limit => 1,
dying_rounds => 120,
dying_flag_price => 1
}
},
teams => [
{ name => 'team1',
network => '127.0.1.0/24',
host => '127.0.1.3',
logo => 'http://example.com',
token => 'private',
tags => ['edu', 'online', 'Russia']
},
{ name => 'team2 (b)',
network => '127.0.2.0/24',
host => '127.0.2.3',
tags => ['pro', 'offline', 'USA']
},
{ name => 'team3 (b)',
network => '127.0.3.0/24',
host => '127.0.3.3',
tags => ['pro', 'online', 'Germany']
}
],
services => [
{name => 'down1', path => 't/checkers/down.pl', timeout => 0.5, tcp_port => 80},
{name => 'down2', path => 't/checkers/timeout.pl', timeout => 0.5, tcp_port => 81},
{name => 'up1', path => 't/checkers/up.pl', timeout => 0.5, tcp_port => 8080},
{name => 'up2', path => 't/checkers/up.pl', timeout => 0.5, tcp_port => 12345, active => ['2014-01-01 00:00:00', '2015-01-01 00:00:00']},
]
}