2015-12-21 21:08:50 +00:00
|
|
|
import os
|
|
|
|
|
2015-12-25 01:37:49 +00:00
|
|
|
secret = open(".secret_key", "a+b")
|
|
|
|
contents = secret.read()
|
|
|
|
if not contents:
|
|
|
|
key = os.urandom(128)
|
|
|
|
secret.write(key)
|
|
|
|
secret.flush()
|
|
|
|
else:
|
|
|
|
key = contents
|
|
|
|
secret.close()
|
2015-12-21 21:08:50 +00:00
|
|
|
|
2015-12-25 01:37:49 +00:00
|
|
|
SECRET_KEY = key
|
2015-12-24 02:06:49 +00:00
|
|
|
|
|
|
|
SQLALCHEMY_DATABASE_URI = "mysql://root:i_hate_passwords@localhost/easyctf"
|
|
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
|
|
|
2016-01-03 19:02:58 +00:00
|
|
|
UPLOAD_FOLDER = os.path.normpath("../web/files")
|
2016-04-08 02:48:12 +00:00
|
|
|
GRADER_FOLDER = os.path.normpath("graders")
|
2016-01-02 20:45:05 +00:00
|
|
|
|
2016-01-16 16:41:16 +00:00
|
|
|
MG_HOST = ""
|
|
|
|
MG_API_KEY = ""
|
|
|
|
ADMIN_EMAIL = ""
|
2016-03-10 07:29:27 +00:00
|
|
|
|
2016-04-08 02:48:12 +00:00
|
|
|
PROBLEM_DIR = "../problems"
|