diff options
-rw-r--r-- | config.ini | 17 | ||||
-rw-r--r-- | config.toml | 46 |
2 files changed, 17 insertions, 46 deletions
diff --git a/config.ini b/config.ini new file mode 100644 index 0000000..727d345 --- /dev/null +++ b/config.ini @@ -0,0 +1,17 @@ +[general] +dir = /home/fkfd/p/jimbrella-test/ +db_path = jimbrella.db +due_hours = 72 +accept_new_users = false + +[security] +secret_key = 13ec4b0c6f7402d2e8203a8965d198c84ee49aa5429cf8b92743d86c94b0e4d5 + +[jform] +takeaway_url = https://wj.sjtu.edu.cn/api/v1/public/export/900e25bf6a039da04da7c5165a7cd41a/json +giveback_url = https://wj.sjtu.edu.cn/api/v1/public/export/88120dc3f75e592ab89a974975fb011c/json +bookmark_dir = bookmarks + +[logging] +log_path = logs/app.log +admin_log_path = logs/admin.log diff --git a/config.toml b/config.toml deleted file mode 100644 index db7cc8c..0000000 --- a/config.toml +++ /dev/null @@ -1,46 +0,0 @@ -# "Root" directory for JImbrella -# All local paths below are relative to this directory -jimbrella_dir = "/opt/jimbrella" - -[flask] -# For Flask sessions. Will be used to encrypt and decrypt user's cookies. -# It is VERY important that this be long, random, and unique. -# One method: python -c 'import secrets; print(secrets.token_hex())' -# Source: https://flask.palletsprojects.com/en/2.0.x/config/#SECRET_KEY -# KEEP SECRET -secret_key = "" - -# Where Flask should find your template (HTML) and static files -template_dir = "jimbrella/templates" -static_dir = "jimbrella/static" - -[user] -# Whether or not visitors can create new accounts -accept_new_users = true - -[jform] -# URLs to jForm's JSON API (no authentication, one URL per questionnaire) -# jForm will assign one to each questionnaire when published -# KEEP SECRET -takeaway_url = "https://wj.sjtu.edu.cn/api/v1/public/export/0123456789abcdef0123456789abcdef/json" -giveback_url = "https://wj.sjtu.edu.cn/api/v1/public/export/fedcba9876543210fedcba9876543210/json" - -# The directory under which JImbrella stores and reads "bookmarks" -# (IDs of the lastest read jForm answer sheet) -bookmark_dir = "bookmarks" - -[db] -# JImbrella Databases -db_path = "db/umbrellas.csv" -users_path = "db/users.csv" - -[rules] -# How many hours a tenant can keep an umbrella -due_hours = 72 - -[logging] -# JImbrella app log: Flask, Werkzeug, etc. Not read by JImbrella. -log_path = "logs/app.log" -# JImbrella admin log: events useful for an admin. -# Read by JImbrella per admin's requirement on web interface. -admin_log_path = "logs/admin.log" |