-
Notifications
You must be signed in to change notification settings - Fork 3
config.py
tobiichi3227 edited this page Oct 25, 2023
·
3 revisions
DBNAME_OJ = 'oj'
DBUSER_OJ = 'oj'
DBPW_OJ = ''
COOKIE_SEC = ''
lock_user_list = []
can_see_code_user = []
unlock_pwd = b''
JUDGE_SERVER_LIST = [
]
WEB_PROBLEM_STATIC_FILE_DIRECTORY = ''
- DBNAME_OJ, DBUSER_OJ, DBPW_OJ是Database相關設定,如果使用install script會自動設定
- COOKIE_SEC是加密cookie的key,如果使用install script會自動設定
- unlock_pwd在某些操作上會使用,如Disconnect Judge Server,它的值是透過
base64.b64encode(msgpack.packb("your_unlock_pwd"))
算出來的 - can_see_code_user[]放的是acct_id,表示可以查看submission的code
- JUDGE_SERVER_LIST是Judge Server列表