- Remove Docker deployment files (1panel doesn't use Docker) - Unify .env files: .env.example -> .env (single config file) - Merge start.sh and start-prod.sh into unified start.sh with --prod flag - Update setup_dev_env.sh to use .env instead of .env.local - Add DEPLOY.md with 1panel deployment guide 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
853 B
Plaintext
36 lines
853 B
Plaintext
# Tool_OCR - 環境變數配置
|
|
# 複製此檔案為 .env 並填入實際值
|
|
# cp .env.example .env
|
|
|
|
# ===== 資料庫 =====
|
|
MYSQL_HOST=your-mysql-host
|
|
MYSQL_PORT=3306
|
|
MYSQL_USER=your-username
|
|
MYSQL_PASSWORD=your-password
|
|
MYSQL_DATABASE=your-database
|
|
|
|
# ===== 服務端口 =====
|
|
# IT 會指派實際端口
|
|
BACKEND_PORT=8000
|
|
FRONTEND_PORT=5173
|
|
|
|
# ===== 安全性 =====
|
|
# 生產環境請使用: openssl rand -hex 32
|
|
SECRET_KEY=your-secret-key-change-this
|
|
|
|
# ===== 外部認證 =====
|
|
EXTERNAL_AUTH_API_URL=https://your-auth-api.example.com
|
|
EXTERNAL_AUTH_ENDPOINT=/api/auth/login
|
|
|
|
# ===== 翻譯 API (DIFY) =====
|
|
ENABLE_TRANSLATION=true
|
|
DIFY_BASE_URL=https://your-dify-instance.example.com/v1
|
|
DIFY_API_KEY=your-dify-api-key
|
|
|
|
# ===== CORS =====
|
|
# 根據實際部署的前端 URL 設定
|
|
CORS_ORIGINS=http://localhost:5173
|
|
|
|
# ===== 日誌 =====
|
|
LOG_LEVEL=INFO
|