chore: add mailtest tool and local config template

This commit is contained in:
2026-03-01 22:32:48 +08:00
parent dbfec3645b
commit a258923892
2 changed files with 141 additions and 0 deletions

38
config.toml Normal file
View File

@@ -0,0 +1,38 @@
[app]
name = "super-todo"
env = "dev"
http_addr = ":8080"
[database]
url = "postgres://todo:todo@localhost:5432/todo?sslmode=disable"
[auth]
secret = "dev-secret-change-me"
access_token_ttl_minutes = 15
refresh_token_ttl_hours = 168
[redis]
addr = "localhost:6379"
password = ""
db = 0
[kafka]
brokers = ["localhost:29092"]
topic = "todo.tasks"
[mail.smtp]
host = "smtp.qq.com"
port = 465
username = "2914037183@qq.com"
password = "daxnelwgfaraddbi"
from = "2914037183@qq.com"
use_tls = true
[notification]
enabled = true
timezone = "Asia/Shanghai"
[notification.schedule]
daily_summary_cron = "0 30 9 * * *"
overdue_reminder_cron = "0 0/30 * * * *"