convertor/compose.yaml
Your Name 03be03bbc2 fix(auth): 修復遠端部署登入失敗問題 v0.1.7
## Bug Fixes
- Cookie sameSite 從 strict 改為 lax(修復遠端存取問題)
- 新增 Cookie path 設定確保覆蓋整個應用
- 新增 TRUST_PROXY 環境變數支援 reverse proxy

## Features
- Dockerfile 新增 texlive-lang-arabic/other(阿拉伯/希伯來語)
- Dockerfile 新增 python3-opencv(電腦視覺)
- Dockerfile 新增 libavcodec-extra(額外編解碼器)
- Locale 預設改為 zh_TW.UTF-8
- Pandoc PDF 引擎改用 pdflatex

## Docs
- compose.yaml 新增 TRUST_PROXY 說明
- 新增遠端部署注意事項
2026-01-20 14:11:11 +08:00

50 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ==============================================================================
# ConvertX-CN 部署範例docker-compose.yml / compose.yaml
#
# 🎉 這是完整版 image已內建所有轉換依賴
# - LibreOffice (headless)
# - TexLiveCJK + 阿拉伯/希伯來語)
# - Tesseract OCR + 中日韓英德法語言包
# - CJK 字型Noto CJK、標楷體
# - Pandoc、FFmpeg、ImageMagick、OpenCV 等所有轉換器
#
# ✅ 使用者不需要自己寫 Dockerfile
# ✅ 直接 docker compose up -d 即可使用
#
# ⚠️ 遠端部署注意事項:
# 若透過 Nginx/Traefik 等 reverse proxy 存取,請設定:
# - HTTP_ALLOWED=true若 proxy 處理 HTTPS
# - 或 TRUST_PROXY=true讓應用正確判斷 HTTPS
# ==============================================================================
services:
convertx:
image: convertx/convertx-cn:latest
container_name: convertx-cn
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
# === 帳號設定 ===
- ACCOUNT_REGISTRATION=false # 是否允許註冊新帳號(首次帳號不受此限制)
- JWT_SECRET=請更換為一個長且隨機的字串 # 若不設定則使用 randomUUID()
# === 安全設定 ===
- HTTP_ALLOWED=false # 是否允許非 HTTPS 連線(僅本地測試時設為 true
- TRUST_PROXY=false # 透過 reverse proxy 時設為 true正確判斷 HTTPS
- ALLOW_UNAUTHENTICATED=false # 是否允許未登入使用(僅本地測試時設為 true
# === 檔案管理 ===
- AUTO_DELETE_EVERY_N_HOURS=24 # 自動刪除超過 N 小時的檔案0 = 停用)
# === 時區設定 ===
- TZ=Asia/Taipei
# === 可選設定 ===
# - WEBROOT=/convertx # 子路徑部署(例如 example.com/convertx/
# - HIDE_HISTORY=true # 隱藏歷史紀錄頁面
# - LANGUAGE=zh-TW # 日期格式語言
# - FFMPEG_ARGS=-hwaccel vaapi # FFmpeg 硬體加速參數
# - MAX_CONVERT_PROCESS=4 # 最大同時轉換數0 = 無限制)