sacn_accout_system/config/config.sample.toml

48 lines
926 B
TOML

[common]
lang = "zh_cn"
access_token_expire_minutes = 60
access_email_expire_minutes = 1
root = "http://127.0.0.1:8000"
clean_timeout = 3600
manage_key = "some_random_key_for_init"
redirect_url_whitelist = ["/user", "/login", "/signup", "127.0.0.1:8000"]
[db]
host = "192.168.10.119"
port = 3306
user = "sacn"
passwd = "your_passwd"
db = "sacn_accout"
maxsize = 100
minsize = 10
[email]
smtp_srv = "smtp.qq.com"
port = 465
addr = "you_email"
passwd = "you_email_access_code"
[ui]
prod_name = "StudyAreaCN"
title = "StuyAreaCN Account System"
manager_email = ""
bar_items = [
[
"开始学习",
"https://learn.study-area.org.cn",
],
[
"讨论区",
"https://forum.study-area.org.cn",
],
[
"查看本站源码",
"https://git.hmtsai.cn/study-area-cn/study-area-cn-homepage/",
],
]
[flarum]
fl_server = "http://127.0.0.1:4000"
fl_apikey = "some_long_key"