39 lines
658 B
TOML
39 lines
658 B
TOML
[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 * * * *"
|
|
|