-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.sample.json
More file actions
81 lines (81 loc) · 1.82 KB
/
config.sample.json
File metadata and controls
81 lines (81 loc) · 1.82 KB
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
{
"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": "Multi-Container Web App",
"containers": [
{
"docker_image": "nginx:stable-alpine",
"hostname": "web_backup",
"ports": [
{
"port": "22/tcp",
"protocol": "ssh"
}
],
"mem_limit": "512m",
"read_only": true,
"environment": {
"ADMIN_PASSWORD": "13fd035636b32f12d859bb5cafab74ca95d1b11d61fabf959f1984dafeda7184",
"APP_URL": "http://web_app:8000"
},
"cap_add": [
"NET_ADMIN"
]
},
{
"docker_image": "nginx:stable-alpine",
"hostname": "web_app",
"ports": [
{
"port": "8000/tcp",
"protocol": "http"
}
],
"mem_limit": "1024m",
"read_only": false,
"cpu_period": 100000,
"cpu_quota": 100000
}
]
}
]
}