forked from frankli0324/ctfd-whale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.html
100 lines (92 loc) · 3.66 KB
/
create.html
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
91
92
93
94
95
96
97
98
99
100
{% extends "admin/challenges/create.html" %}
{% block header %}
<div class="alert alert-secondary" role="alert">
Dynamic docker challenge allows players to deploy their per-challenge standalone instances.
</div>
{% endblock %}
{% block value %}
<div class="form-group">
<label for="value">Docker Image<br>
<small class="form-text text-muted">
The docker image used to deploy
</small>
</label>
<input type="text" class="form-control" name="docker_image" placeholder="Enter docker image name" required>
</div>
<div class="form-group">
<label for="value">Frp Redirect Type<br>
<small class="form-text text-muted">
Decide the redirect type how frp redirect traffic
</small>
</label>
<select class="form-control" name="redirect_type">
<option value="http" selected>HTTP</option>
<option value="direct">Direct</option>
</select>
</div>
<div class="form-group">
<label for="value">Frp Redirect Port<br>
<small class="form-text text-muted">
Decide which port in the instance that frp should redirect traffic for
</small>
</label>
<input type="number" class="form-control" name="redirect_port" placeholder="Enter the port you want to open"
required>
</div>
<div class="form-group">
<label for="value">Docker Container Memory Limit<br>
<small class="form-text text-muted">
The memory usage limit
</small>
</label>
<input type="text" class="form-control" name="memory_limit" placeholder="Enter the memory limit" value="128m"
required>
</div>
<div class="form-group">
<label for="value">Docker Container CPU Limit<br>
<small class="form-text text-muted">
The CPU usage limit
</small>
</label>
<input type="number" class="form-control" name="cpu_limit" placeholder="Enter the cpu limit" value="0.5"
required>
</div>
<div class="form-group">
<label for="value">Initial Value<br>
<small class="form-text text-muted">
This is how many points the challenge is worth initially.
</small>
</label>
<input type="number" class="form-control" name="value" placeholder="Enter value" required>
</div>
<div class="form-group">
<label for="value">Decay Limit<br>
<small class="form-text text-muted">
The amount of solves before the challenge reaches its minimum value
</small>
</label>
<input type="number" class="form-control" name="decay" placeholder="Enter decay limit" required>
</div>
<div class="form-group">
<label for="value">Minimum Value<br>
<small class="form-text text-muted">
This is the lowest that the challenge can be worth
</small>
</label>
<input type="number" class="form-control" name="minimum" placeholder="Enter minimum value" required>
</div>
<div class="form-group">
<label for="value">Score Type<br>
<small class="form-text text-muted">
Decide it use dynamic score or not
</small>
</label>
<select class="form-control" name="dynamic_score">
<option value="0" selected>Static Score</option>
<option value="1">Dynamic Score</option>
</select>
</div>
{% endblock %}
{% block type %}
<input type="hidden" value="dynamic_docker" name="type" id="chaltype">
{% endblock %}