diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-12-08 21:26:31 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-12-08 21:26:31 +0800 |
commit | 1c6ed177608d61e6eeb9c44ff78b6fde35861a39 (patch) | |
tree | b0f77e820ca40dc671ac8a29a6ffb1d6f8c7187d | |
parent | e2b47c6084a5584bccc805c6d161ccbd58e5b257 (diff) |
Improve comments in config.toml
Also, accept_new_users defaults to true.
-rw-r--r-- | config.toml | 10 |
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" |