2016-03-06 00:43:12 +00:00
|
|
|
import os
|
2015-12-01 17:40:43 +00:00
|
|
|
from datetime import datetime
|
|
|
|
|
2015-11-08 06:10:26 +00:00
|
|
|
ctf_name = "TJCTF"
|
2016-05-17 22:44:30 +00:00
|
|
|
#IRC Channel
|
|
|
|
ctf_chat_channel = "#tjctf"
|
2016-03-06 01:04:51 +00:00
|
|
|
ctf_home_url = "http://tjctf.org"
|
2015-11-08 06:10:26 +00:00
|
|
|
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"
|
2015-12-01 17:40:43 +00:00
|
|
|
|
2016-02-04 01:20:39 +00:00
|
|
|
cdn = True
|
2015-11-12 03:41:04 +00:00
|
|
|
apisubmit = True
|
2016-04-17 16:33:42 +00:00
|
|
|
registration = True
|
2015-12-01 17:40:43 +00:00
|
|
|
|
2015-11-08 06:10:26 +00:00
|
|
|
proxied_ip_header = "X-Forwarded-For"
|
2015-12-01 17:40:43 +00:00
|
|
|
|
2016-05-22 20:10:12 +00:00
|
|
|
flag_rl = 5
|
2015-11-08 19:04:02 +00:00
|
|
|
teams_on_graph = 10
|
2015-12-01 17:40:43 +00:00
|
|
|
|
2015-11-09 02:44:04 +00:00
|
|
|
mail_from = "tjctf@sandbox1431.mailgun.org"
|
2015-12-01 17:40:43 +00:00
|
|
|
|
2016-05-15 22:05:42 +00:00
|
|
|
# IPs that are allowed to confirm teams by posting to /teamconfirm/
|
|
|
|
# Useful for verifying resumes and use with resume server.
|
|
|
|
confirm_ip = []
|
|
|
|
|
2015-11-29 17:10:38 +00:00
|
|
|
static_prefix = "http://127.0.0.1/tjctf-static/"
|
2016-03-06 00:43:12 +00:00
|
|
|
static_dir = "{}/static/".format(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
custom_stylesheet = "tjctf.css"
|
2015-11-08 19:04:02 +00:00
|
|
|
|
2015-12-01 17:40:43 +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)
|
2015-12-01 17:40:43 +00:00
|
|
|
|
2016-05-15 22:05:42 +00:00
|
|
|
# Are you using a resume server?
|
|
|
|
resumes = True
|
|
|
|
# If yes, where's it hosted? Otherwise, just put None.
|
|
|
|
resume_server = "https://resumes.tjctf.org"
|
|
|
|
|
2016-05-22 20:16:52 +00:00
|
|
|
disallowed_domain = "tjctf.org"
|
|
|
|
|
2016-05-15 22:05:42 +00:00
|
|
|
|
2015-12-01 17:40:43 +00:00
|
|
|
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)
|