summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.toml10
1 files changed, 7 insertions, 3 deletions
diff --git a/config.toml b/config.toml
index a5e45ac..db7cc8c 100644
--- a/config.toml
+++ b/config.toml
@@ -5,7 +5,9 @@ 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
+# 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
@@ -13,11 +15,13 @@ template_dir = "jimbrella/templates"
static_dir = "jimbrella/static"
[user]
-# Whether or not users can create new accounts
-accept_new_users = false
+# 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"