From 1c6ed177608d61e6eeb9c44ff78b6fde35861a39 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 8 Dec 2021 21:26:31 +0800 Subject: Improve comments in config.toml Also, accept_new_users defaults to true. --- config.toml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'config.toml') 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" -- cgit v1.2.3