From fea01028d97dd8a11673912fd0c6f1453c34adad Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 24 Nov 2021 19:45:29 +0800 Subject: Clean up repo structure This makes the repo easily deployable. --- config.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 config.toml (limited to 'config.toml') diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..b38abdc --- /dev/null +++ b/config.toml @@ -0,0 +1,40 @@ +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. +# Learn how to generate one: https://flask.palletsprojects.com/en/2.0.x/config/#SECRET_KEY +secret_key = "" + +# Where Flask should find your template (HTML) and static files +template_dir = "jimbrella/templates" +static_dir = "jimbrella/static" + +[user] +# Whether or not users can create new accounts +accept_new_users = false + +[jform] +# URLs to jForm's JSON API (no authentication, one URL per questionnaire) +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" -- cgit v1.2.3