sacn_accout_system/config/config.sample.toml

48 lines
926 B
TOML
Raw Normal View History

2024-08-17 11:25:51 +08:00
[common]
2024-08-28 20:21:31 +08:00
lang = "zh_cn"
2024-08-17 11:25:51 +08:00
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"]
2024-08-28 20:21:31 +08:00
[db]
host = "192.168.10.119"
port = 3306
user = "sacn"
passwd = "your_passwd"
db = "sacn_accout"
maxsize = 100
minsize = 10
2024-08-17 11:25:51 +08:00
[email]
smtp_srv = "smtp.qq.com"
port = 465
addr = "you_email"
passwd = "you_email_access_code"
2024-08-28 20:21:31 +08:00
[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"