chore: add mailtest tool and local config template
This commit is contained in:
38
config.toml
Normal file
38
config.toml
Normal 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 * * * *"
|
||||
|
||||
Reference in New Issue
Block a user