easyctf-2017/server/config.py

19 lines
414 B
Python
Raw Normal View History

2015-12-21 21:08:50 +00:00
import os
with open(".secret_key", "a+") as secret:
if not secret.read():
secret.seek(0)
key = os.urandom(128)
secret.write(key)
secret.flush()
else:
key = secret.read()
SECRET = key
2015-12-24 02:06:49 +00:00
SQLALCHEMY_DATABASE_URI = "mysql://root:i_hate_passwords@localhost/easyctf"
SQLALCHEMY_TRACK_MODIFICATIONS = False
2015-12-21 21:08:50 +00:00
CTF_BEGIN = 0 # To be used later
CTF_END = 0 # To be used later