新增資料庫、用戶註冊、登入的功能
This commit is contained in:
36
env.example
Normal file
36
env.example
Normal file
@@ -0,0 +1,36 @@
|
||||
# 資料庫配置
|
||||
DB_HOST=mysql.theaken.com
|
||||
DB_PORT=33306
|
||||
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助手配置
|
||||
NEXT_PUBLIC_DEEPSEEK_API_KEY=your_deepseek_api_key_here
|
||||
NEXT_PUBLIC_DEEPSEEK_API_URL=https://api.deepseek.com/v1/chat/completions
|
||||
|
||||
# 應用配置
|
||||
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||
NEXTAUTH_URL=http://localhost:3000
|
||||
NEXTAUTH_SECRET=your_nextauth_secret_here
|
||||
|
||||
# 郵件配置 (可選)
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=your_email@gmail.com
|
||||
SMTP_PASS=your_email_password
|
||||
|
||||
# 文件上傳配置 (可選)
|
||||
UPLOAD_DIR=./uploads
|
||||
MAX_FILE_SIZE=10485760
|
||||
|
||||
# 快取配置 (可選)
|
||||
REDIS_URL=redis://localhost:6379
|
||||
|
||||
# 日誌配置
|
||||
LOG_LEVEL=info
|
||||
LOG_FILE=./logs/app.log
|
Reference in New Issue
Block a user