-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathconfig.sample.yaml
More file actions
94 lines (82 loc) · 2.62 KB
/
config.sample.yaml
File metadata and controls
94 lines (82 loc) · 2.62 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
82
83
84
85
86
87
88
89
90
91
92
93
94
---
databases:
postgres:
# Leave server empty to use local socket
server: ''
port: 5432
username: ''
password: ''
database: saarctf
redis:
host: localhost
port: 6379
db: 0
# password: "..."
rabbitmq:
host: localhost
port: 5672
vhost: saarctf
username: saarctf
password: '123456789'
# remote services
website_team_url: "..."
website_logo_url: "..."
flower_url: http://localhost:5555/
# flower_internal_url: http://127.0.0.1:20000/
# flower_ajax_url: /flower/
coder_url: ''
scoreboard_url: ''
grafana_url: ''
# paths
scoreboard_path: "/dev/shm/scoreboard"
# scoreboard_path_internal: "/dev/shm/scoreboard-internal" # not affected by scoreboard freeze
vpnboard_path: "/dev/shm/vpnboard"
checker_packages_path: "/dev/shm/packages"
patches_path: "/dev/shm/patches"
patches_public_path: "/dev/shm/patches-webroot"
# Setup
external_timer: false # false for local test setup without dedicated ctftimer script, true for production setup
tick_duration_default: 120
environment: dev # use "intern" or "dev" to add a visual tag, null to remove tags. Run "npm run build" to apply.
# Flags / scoring
secret_flags: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
flag_prefix: SAAR # must be exactly 4 letters
scoring:
flags_rounds_valid: 10
nop_team_id: 1
off_factor: 1
def_factor: 1
sla_factor: 1
# algorithm: "saarctf:SaarctfScoreAlgorithm" # if you define alternate algorithms
# Do not update results after a certain tick (except on "internal" scoreboard)
# this is the last tick that's completely published, every tick afterwards will keep this tick's results
# scoreboard_freeze: 30
runner:
dispatcher: dispatcher:CeleryDispatcher
eno:
check_past_ticks: 5
timeout: 15 # in seconds
# List of (saarctf-style) services for auto-deployment on servers
service_remotes:
- ssh://git@gitlab.saarsec.rocks:2222/...
# Network configuration
dispatcher_check_vpn_status: true
network:
game: 10.32.0.0/15
# IP syntax: [a, b, c, d]
# where each component is either:
# - number
# - list ["x", "y", "z"] = ((team_id / x) mod y) + z
vulnbox_ip: [127, [200, 256, 0], [1, 200, 0], 2]
gateway_ip: [127, [200, 256, 0], [1, 200, 0], 1]
testbox_ip: [127, [200, 256, 0], [1, 200, 0], 3]
# same as IP syntax, but with fith component for range
team_range: [127, [200, 256, 0], [1, 200, 0], 0, 24]
vpn_host: 10.32.250.1
vpn_peer_ips: [10, [200, 256, 48], [1, 200, 0], 1] # not necessary for wireguard
gameserver_ip: 10.32.250.2
gameserver_range: 10.32.250.0/24
wireguard_sync:
api_server: https://ctf.saarland
api_token: "..."
ctfroute_namespace: cte25