init: 初始化项目

This commit is contained in:
0264408
2026-03-10 16:26:48 +08:00
commit 57e0ef2cf6
79 changed files with 8943 additions and 0 deletions

19
.env.example Normal file
View File

@@ -0,0 +1,19 @@
# 服务器配置
SERVER_ADDRESS=:9050
SERVER_MODE=dev # dev 或 prod
# 数据库配置
DATABASE_DSN=nebula.db
# 存储配置
STORAGE_TYPE=local
STORAGE_BASE_PATH=./uploads
STORAGE_BASE_URL=http://localhost:9050/files
# JWT 配置
JWT_SECRET=your-secret-key-change-in-production
JWT_ACCESS_TOKEN_DURATION=7200 # 2小时
JWT_REFRESH_TOKEN_DURATION=604800 # 7天
# 前端配置(生产环境)
# FRONTEND_PATH=./web/dist