-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.sample.json
74 lines (74 loc) · 2.07 KB
/
config.sample.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
{
"website_title": "HeroCTF - Deploy dynamic challenges",
"ctfd_url": "https://ctf.heroctf.fr",
"max_instance_count": 100,
"max_instance_duration": 100,
"max_instance_per_team": 5,
"random_ports": {
"min": 10000,
"max": 15000
},
"hosts": [
{
"domain": "127.0.0.1",
"api": "unix:///var/run/docker.sock"
},
{
"domain": "dyn-01.heroctf.fr",
"api": "tcp://192.168.172.7:2375"
},
{
"domain": "dyn-02.heroctf.fr",
"api": "tcp://192.168.172.174:2375"
}
],
"challenges": [
{
"name": "Nginx Default Page",
"containers": [
{
"docker_image": "nginx:stable-alpine",
"ports": [
{
"port": "80/tcp",
"protocol": "http"
}
],
"mem_limit": "512m",
"read_only": false
}
]
},
{
"name": "IMF #0 to #4",
"containers": [
{
"docker_image": "imf_backup:latest",
"hostname": "backup",
"ports": [
{
"port": "22/tcp",
"protocol": "ssh"
}
],
"mem_limit": "1024m",
"read_only": true
},
{
"docker_image": "imf_dev:latest",
"hostname": "dev",
"ports": [
{
"port": "22/tcp",
"protocol": "ssh"
}
],
"mem_limit": "1024m",
"read_only": false,
"cpu_period" : 100000,
"cpu_quota" : 100000
}
]
}
]
}