# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: BentoPDF
spec:
    description: A privacy-first, client-side PDF toolkit that runs entirely in the browser and can be self-hosted easily with Docker.
    coverImage: https://i.meee.com.tw/bht0bNG.png
    icon: https://bentopdf.com/images/favicon.svg
    variables:
        - key: APP_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to bind to the BentoPDF web service.
        - key: SIMPLE_MODE
          type: STRING
          name: Simple Mode (true/false)
          description: Enter "true" to enable BentoPDF's simplified interface; leave empty or "false" to use the default full version.
    tags:
        - Tool
        - PDF
        - Website
    readme: "# BentoPDF\n\nBentoPDF is a privacy-first, browser-based PDF toolbox with over 50 tools including merge, split, compress, edit, and convert.  \nIt runs entirely on the client side — no uploads, no tracking, no data leaves your browser.\n\n## Deployment\nThis Zeabur template deploys BentoPDF using the official Docker image `bentopdf/bentopdf:latest`.  \nThe container exposes port `8080` and serves a static web app through Nginx.\n\n### Modes\nBentoPDF provides **two modes**:\n\n- **Default Mode:**  \n  Full-featured version with all tools enabled.  \n  Best for desktop browsers and power users.\n\n- **Simple Mode:**  \n  Lightweight version with faster loading and reduced UI complexity.  \n  Enable it by setting the `SIMPLE_MODE` variable to `true` during deployment.\n\n### Steps\n1. Click **Deploy** to create the container.\n2. Set your desired **Domain** (optional) to access the app via a custom URL.\n3. Set **Simple Mode** to `true` if you prefer a lightweight interface (leave blank/`false` otherwise).\n4. Open your site to start using BentoPDF immediately.\n\n### Update\nTo upgrade BentoPDF, simply change the image tag to a newer release (e.g. `bentopdf/bentopdf:v1.0.2`).\n\n### References\n- GitHub: https://github.com/alam00000/bentopdf\n- Simple Mode: https://github.com/alam00000/bentopdf/blob/main/SIMPLE_MODE.md\n- Docker Hub: https://hub.docker.com/r/bentopdf/bentopdf\n- Zeabur Docs: https://zeabur.com/docs/zh-TW/template/template-in-code"
    services:
        - name: bentopdf
          icon: https://bentopdf.com/images/favicon.svg
          template: PREBUILT
          spec:
            id: bentopdf
            source:
                image: bentopdf/bentopdf:latest
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            instructions:
                - title: Access your deployed app
                  content: https://${APP_DOMAIN}
            env:
                BENTOPDF_IMAGE:
                    default: bentopdf/bentopdf:latest
                    expose: true
                SIMPLE_MODE:
                    default: ${SIMPLE_MODE}
                    expose: true
          domainKey: APP_DOMAIN
localization:
    zh-TW:
        description: BentoPDF 是一款隱私優先、完全在瀏覽器端執行的 PDF 工具箱，支援合併、分割、壓縮、編輯與轉換等 50 多種功能，並可選擇簡化模式以加快載入速度。
        variables:
            - key: APP_DOMAIN
              type: DOMAIN
              name: 網域
              description: 綁定至 BentoPDF 服務的網域。
            - key: SIMPLE_MODE
              type: STRING
              name: 簡化模式（true/false）
              description: 輸入「true」啟用簡化介面；留空或輸入「false」則使用完整版本。
        readme: "# BentoPDF\n\nBentoPDF 是一個注重隱私、完全前端執行的 PDF 工具平台，  \n支援多達 50 種以上的功能，包括合併、分割、壓縮、編輯與轉換。  \n所有操作皆在瀏覽器中完成，不需將檔案上傳至伺服器，確保資料安全。\n\n## 模式選擇\n- **標準模式（Default Mode）**：功能完整，適合桌機與進階使用。  \n- **簡化模式（Simple Mode）**：載入更快、介面更精簡。於部署變數 `SIMPLE_MODE` 輸入 `true` 即可啟用。  \n\n## 部署方式\n使用官方 Docker 映像 `bentopdf/bentopdf:latest`，服務埠為 `8080`（Nginx 提供靜態頁面）。\n\n### 步驟\n1. 按下 **Deploy** 建立容器。  \n2. （可選）設定 **網域**。  \n3. 如需簡化模式，將 `SIMPLE_MODE` 設為 `true`。  \n4. 開啟網站即可開始使用。\n\n### References\n- GitHub: https://github.com/alam00000/bentopdf\n- Simple Mode: https://github.com/alam00000/bentopdf/blob/main/SIMPLE_MODE.md\n- Docker Hub: https://hub.docker.com/r/bentopdf/bentopdf\n- Zeabur Docs: https://zeabur.com/docs/zh-TW/template/template-in-code"
