ColdCore/config.py

32 lines
946 B
Python
Raw Normal View History

from datetime import datetime
2015-11-08 06:10:26 +00:00
ctf_name = "TJCTF"
eligibility = "In order to be eligible for prizes, all members of your team must be in high school, and you must not have more than four team members."
2015-11-08 19:04:02 +00:00
tagline = "a cybersecurity competition created by TJHSST students"
2016-02-04 01:20:39 +00:00
cdn = True
2015-11-12 03:41:04 +00:00
apisubmit = True
2015-11-08 06:10:26 +00:00
proxied_ip_header = "X-Forwarded-For"
2015-11-08 06:10:26 +00:00
flag_rl = 10
2015-11-08 19:04:02 +00:00
teams_on_graph = 10
2015-11-09 02:44:04 +00:00
mail_from = "tjctf@sandbox1431.mailgun.org"
2015-11-29 17:10:38 +00:00
static_prefix = "http://127.0.0.1/tjctf-static/"
static_dir = "/home/fwilson/web/tjctf-static/"
2015-11-08 19:04:02 +00:00
competition_begin = datetime(1970, 1, 1, 0, 0)
2016-02-03 22:31:14 +00:00
competition_end = datetime(2018, 1, 1, 0, 0)
def competition_is_running():
return competition_begin < datetime.now() < competition_end
2015-11-08 19:04:02 +00:00
# Don't touch these. Instead, copy secrets.example to secrets and edit that.
import yaml
from collections import namedtuple
with open("secrets") as f:
_secret = yaml.load(f)
secret = namedtuple('SecretsDict', _secret.keys())(**_secret)