-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.py
47 lines (38 loc) · 1.53 KB
/
config.py
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
import os
# import validators.volgactf
CONFIG = {
'DEBUG': os.getenv('DEBUG') == '1',
'TEAMS': {
f'Team #{i}': f'10.60.{i}.3'
for i in range(0, 10)
},
# 'FLAG_FORMAT': r'CTF\.Moscow\{[a-zA-Z\.0-9_-]+\}',
# 'FLAG_FORMAT': r'VolgaCTF{[\w-]*\.[\w-]*\.[\w-]*}',
'FLAG_FORMAT': r'[A-Z0-9]{31}=',
# 'SYSTEM_PROTOCOL': 'ructf_http',
# 'SYSTEM_URL': 'http://monitor.ructfe.org/flags',
# 'SYSTEM_TOKEN': '275_17fc104dd58d429ec11b4a5e82041cd2',
'SYSTEM_PROTOCOL': 'forcad_tcp',
'SYSTEM_HOST': '10.10.10.10',
'SYSTEM_PORT': '31337',
'TEAM_TOKEN': '4fdcd6e54faa8991',
# 'SYSTEM_PROTOCOL': 'volgactf',
# 'SYSTEM_VALIDATOR': 'volgactf',
# 'SYSTEM_HOST': 'final.volgactf.ru',
# 'SYSTEM_SERVER_KEY': validators.volgactf.get_public_key('https://final.volgactf.ru'),
# The server will submit not more than SUBMIT_FLAG_LIMIT flags
# every SUBMIT_PERIOD seconds. Flags received more than
# FLAG_LIFETIME seconds ago will be skipped.
'SUBMIT_FLAG_LIMIT': 100,
'SUBMIT_PERIOD': 2,
'FLAG_LIFETIME': 5 * 60,
# VOLGA: Don't make more than INFO_FLAG_LIMIT requests to get flag info,
# usually should be more than SUBMIT_FLAG_LIMIT
# 'INFO_FLAG_LIMIT': 10,
# Password for the web interface. This key will be excluded from config
# before sending it to farm clients.
# ########## DO NOT FORGET TO CHANGE IT ##########
'SERVER_PASSWORD': os.getenv('SERVER_PASSWORD') or '1234',
# For all time-related operations
'TIMEZONE': 'Europe/Moscow',
}