fix: Docker image size and add download retry mechanism

## Bug Fixes
- Fix standard image size issue (was ~1.5GB, should be 8-12GB)
- Add strict model validation during build
- Add retry mechanism (--retry 3 --retry-delay 5) to all curl downloads

## Documentation
- Clarify version terminology: Standard (一般版), Extended (擴充版), Lite (Lite版)
- Remove duplicate docs/環境變數總覽.md
- Improve environment variable documentation structure
- Add quick reference tables for environment variables

## Build
- Explicitly specify 'file: Dockerfile' in release.yml
- Use 'buildcache-full' cache key to prevent cross-pollution
This commit is contained in:
Your Name 2026-01-24 21:31:11 +08:00
parent ee7c1da01f
commit 27ffdee6f4
8 changed files with 284 additions and 280 deletions

View file

@ -4,18 +4,46 @@
---
## 快速參考
## 📋 快速參考
| 優先級 | 變數 | 說明 | 預設值 |
| ------ | -------------- | ------------ | ------------------ |
| 必填 | `JWT_SECRET` | 登入驗證金鑰 | 隨機(每次重啟變) |
| 建議 | `TZ` | 時區 | `UTC` |
| 建議 | `HTTP_ALLOWED` | 允許 HTTP | `false` |
| 可選 | `TRUST_PROXY` | 信任反向代理 | `false` |
### 🔒 安全性設定
| 變數 | 說明 | 預設值 | 必填 |
| ----------------------- | ------------ | ------------------ | ---- |
| `JWT_SECRET` | 登入驗證金鑰 | 隨機(每次重啟變) | ⭐ |
| `HTTP_ALLOWED` | 允許 HTTP | `false` | |
| `TRUST_PROXY` | 信任反向代理 | `false` | |
| `ACCOUNT_REGISTRATION` | 允許註冊 | `true` | |
| `ALLOW_UNAUTHENTICATED` | 允許匿名 | `false` | |
### 🌐 一般設定
| 變數 | 說明 | 預設值 |
| --------------------------- | ---------------- | ------- |
| `TZ` | 時區 | `UTC` |
| `AUTO_DELETE_EVERY_N_HOURS` | 自動刪除(小時) | `24` |
| `WEBROOT` | 子路徑前綴 | 空 |
| `HIDE_HISTORY` | 隱藏歷史紀錄 | `false` |
| `LANGUAGE` | 介面語言 | `auto` |
### ⚙️ 轉換設定
| 變數 | 說明 | 預設值 |
| --------------------- | --------------- | ------------- |
| `MAX_CONVERT_PROCESS` | 最大同時轉換數 | `0`(無限制) |
| `FFMPEG_ARGS` | FFmpeg 輸入參數 | 空 |
| `FFMPEG_OUTPUT_ARGS` | FFmpeg 輸出參數 | 空 |
### 📄 PDF 翻譯設定
| 變數 | 說明 | 預設值 |
| ------------------------------ | -------- | --------- |
| `PDFMATHTRANSLATE_SERVICE` | 翻譯服務 | `google` |
| `PDFMATHTRANSLATE_MODELS_PATH` | 模型路徑 | `/models` |
---
## 必填設定
## 🔒 必填設定
### JWT_SECRET