feat: add JWT authentication and AGENTS.md

This commit is contained in:
祀梦
2026-05-17 11:21:41 +08:00
parent 40eb2dadb0
commit 3c03866021
19 changed files with 554 additions and 1632 deletions

View File

@@ -27,3 +27,7 @@ DEFAULT_PAGE_SIZE = 20
# 服务配置
HOST = "0.0.0.0"
PORT = 23994
# JWT 认证配置
JWT_SECRET = "elysia-todo-secret-key-change-in-production"
ACCESS_TOKEN_EXPIRE_MINUTES = 1440 # 24小时