整合資料庫、完成登入註冊忘記密碼功能

This commit is contained in:
2025-09-09 12:00:22 +08:00
parent af88c0f037
commit 32b19e9a0f
85 changed files with 11672 additions and 2350 deletions

View File

@@ -1,36 +1,42 @@
# =====================================================
# AI 展示平台環境變數配置
# =====================================================
# 資料庫配置
DB_HOST=mysql.theaken.com
DB_PORT=33306
DB_NAME=db_AI_Platform
DB_USER=AI_Platform
DB_PASSWORD=Aa123456
DB_NAME=db_AI_Platform
# JWT 配置
JWT_SECRET=your_jwt_secret_key_here_make_it_long_and_random
JWT_EXPIRES_IN=7d
# AI助手配置
# DeepSeek API 配置
NEXT_PUBLIC_DEEPSEEK_API_KEY=your_deepseek_api_key_here
NEXT_PUBLIC_DEEPSEEK_API_URL=https://api.deepseek.com/v1/chat/completions
# JWT 配置
JWT_SECRET=AI666
JWT_EXPIRES_IN=7d
# 應用配置
NEXT_PUBLIC_APP_NAME=強茂集團 AI 展示平台
NEXT_PUBLIC_APP_DESCRIPTION=企業內部 AI 應用展示與競賽管理系統
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_nextauth_secret_here
# 文件上傳配置
MAX_FILE_SIZE=10485760
ALLOWED_FILE_TYPES=jpg,jpeg,png,gif,pdf,doc,docx,ppt,pptx
# 郵件配置 (可選)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_email_password
SMTP_PASS=your_app_password
# 文件上傳配置 (可選)
UPLOAD_DIR=./uploads
MAX_FILE_SIZE=10485760
# 快取配置 (可選)
REDIS_URL=redis://localhost:6379
# Redis 配置 (可選,用於緩存)
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# 日誌配置
LOG_LEVEL=info
LOG_FILE=./logs/app.log
LOG_FILE=logs/app.log