# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: ONLYOFFICE Docs
spec:
    description: |
        ONLYOFFICE Docs is a self-hosted online office suite for editing documents, spreadsheets, and presentations in the browser. Full compatibility with Microsoft Office formats (DOCX, XLSX, PPTX). Supports real-time collaborative editing.
    coverImage: https://avatars.githubusercontent.com/u/6964864
    icon: https://avatars.githubusercontent.com/u/6964864
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access ONLYOFFICE Docs
        - key: JWT_SECRET
          type: PASSWORD
          name: JWT Secret
          description: Secret key for JSON Web Token authentication
    tags:
        - Tool
        - Productivity
    readme: |
        # ONLYOFFICE Docs

        A self-hosted online office suite that runs entirely in the browser. Edit documents, spreadsheets, and presentations with full Microsoft Office format compatibility. Supports real-time collaborative editing with multiple users.

        ## What You Can Do After Deployment

        Access the welcome page at your domain to verify the server is running. ONLYOFFICE Docs is designed to be integrated with other applications (Nextcloud, Seafile, ownCloud, WordPress, etc.) via its API.

        **Document editing:** Full-featured word processor supporting DOCX, ODT, RTF, TXT, PDF, and HTML. Track changes, comments, table of contents, mail merge, and document comparison.

        **Spreadsheet editing:** Complete spreadsheet editor with formulas, pivot tables, charts, conditional formatting, data validation, and macros. Supports XLSX, ODS, and CSV.

        **Presentation editing:** Slide editor with animations, transitions, speaker notes, and master slides. Supports PPTX and ODP formats.

        **Collaboration:** Real-time co-editing with cursor tracking, comments, and chat. Two collaboration modes: fast (real-time) and strict (manual save).

        **PDF forms:** Create and fill PDF forms directly in the browser.

        ## Configuration

        - **JWT authentication:** `JWT_SECRET` is set automatically. All API requests must include a valid JWT signed with this secret.
        - **Connection limits:** The Community Edition supports up to 20 simultaneous connections. For more, a commercial license is required.
        - **Integration:** Use the ONLYOFFICE API to embed the editor in your application. The API endpoint is available at `https://<your-domain>/web-apps/apps/api/documents/api.js`

        ## Integration Examples

        ONLYOFFICE Docs can be integrated with:
        - **Nextcloud** via the ONLYOFFICE connector app
        - **Seafile** with built-in ONLYOFFICE support
        - **WordPress** via the ONLYOFFICE plugin
        - Any web application using the [Document Server API](https://api.onlyoffice.com/)

        ## License

        AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
    services:
        - name: onlyoffice-docs
          icon: https://avatars.githubusercontent.com/u/6964864
          template: PREBUILT_V2
          spec:
            source:
                image: onlyoffice/documentserver:9.3
            ports:
                - id: web
                  port: 80
                  type: HTTP
            volumes:
                - id: data
                  dir: /var/www/onlyoffice/Data
                - id: logs
                  dir: /var/log/onlyoffice
            env:
                JWT_ENABLED:
                    default: "true"
                JWT_SECRET:
                    default: ${PASSWORD}
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            ONLYOFFICE Docs es una suite ofimática en línea autoalojada para editar documentos, hojas de cálculo y presentaciones en el navegador. Compatible con formatos de Microsoft Office (DOCX, XLSX, PPTX). Edición colaborativa en tiempo real.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a ONLYOFFICE Docs
            - key: JWT_SECRET
              type: STRING
              name: Secreto JWT
              description: Clave secreta para autenticación JWT
        readme: |
            # ONLYOFFICE Docs

            Suite ofimática en línea autoalojada. Edita documentos, hojas de cálculo y presentaciones con compatibilidad total con Microsoft Office.

            ## Qué puedes hacer después del despliegue

            Accede a tu dominio para verificar que el servidor funciona. ONLYOFFICE Docs se integra con otras aplicaciones (Nextcloud, Seafile, etc.) mediante su API.

            **Edición de documentos:** DOCX, ODT, RTF, PDF. Control de cambios, comentarios, tabla de contenidos.

            **Hojas de cálculo:** Fórmulas, tablas dinámicas, gráficos, formato condicional. XLSX, ODS, CSV.

            **Presentaciones:** Animaciones, transiciones, notas del orador. PPTX, ODP.

            **Colaboración:** Coedición en tiempo real, seguimiento de cursor, comentarios y chat.

            ## Configuración

            - JWT: `JWT_SECRET` se configura automáticamente
            - Límite de conexiones: Community Edition soporta hasta 20 conexiones simultáneas

            ## Licencia

            AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
    id-ID:
        description: |
            ONLYOFFICE Docs adalah suite perkantoran online self-hosted untuk mengedit dokumen, spreadsheet, dan presentasi di browser. Kompatibel penuh dengan format Microsoft Office (DOCX, XLSX, PPTX). Mendukung pengeditan kolaboratif real-time.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses ONLYOFFICE Docs
            - key: JWT_SECRET
              type: STRING
              name: JWT Secret
              description: Kunci rahasia untuk otentikasi JWT
        readme: |
            # ONLYOFFICE Docs

            Suite perkantoran online self-hosted. Edit dokumen, spreadsheet, dan presentasi dengan kompatibilitas penuh Microsoft Office.

            ## Apa yang bisa dilakukan setelah deploy

            Akses domain untuk memverifikasi server berjalan. ONLYOFFICE Docs terintegrasi dengan aplikasi lain (Nextcloud, Seafile, dll.) melalui API.

            **Edit dokumen:** DOCX, ODT, RTF, PDF. Track changes, komentar, daftar isi.

            **Spreadsheet:** Rumus, pivot table, grafik, format kondisional. XLSX, ODS, CSV.

            **Presentasi:** Animasi, transisi, catatan pembicara. PPTX, ODP.

            **Kolaborasi:** Co-editing real-time, pelacakan kursor, komentar, dan chat.

            ## Konfigurasi

            - JWT: `JWT_SECRET` dikonfigurasi secara otomatis
            - Batas koneksi: Community Edition mendukung hingga 20 koneksi simultan

            ## Lisensi

            AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
    ja-JP:
        description: |
            ONLYOFFICE Docsはセルフホストのオンラインオフィススイートです。ブラウザ上でドキュメント、スプレッドシート、プレゼンテーションを編集できます。Microsoft Officeフォーマット（DOCX、XLSX、PPTX）と完全互換。リアルタイム共同編集対応。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: ONLYOFFICE Docsにアクセスするためのドメイン
            - key: JWT_SECRET
              type: STRING
              name: JWTシークレット
              description: JSON Web Token認証のシークレットキー
        readme: |
            # ONLYOFFICE Docs

            セルフホストのオンラインオフィススイート。ブラウザ上でドキュメント、スプレッドシート、プレゼンテーションを編集。Microsoft Officeフォーマットと完全互換。

            ## デプロイ後にできること

            ドメインにアクセスしてウェルカムページを確認。ONLYOFFICE DocsはAPI経由で他のアプリケーション（Nextcloud、Seafile等）と統合するよう設計されています。

            **ドキュメント編集：** DOCX、ODT、RTF、PDF対応。変更履歴、コメント、目次、差し込み印刷。

            **スプレッドシート：** 数式、ピボットテーブル、グラフ、条件付き書式。XLSX、ODS、CSV対応。

            **プレゼンテーション：** アニメーション、トランジション、スピーカーノート。PPTX、ODP対応。

            **コラボレーション：** リアルタイム共同編集、カーソル追跡、コメント、チャット。

            ## 設定

            - JWT認証：`JWT_SECRET`は自動設定済み
            - 接続制限：Community Editionは同時20接続まで

            ## ライセンス

            AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
    ko-KR:
        description: |
            ONLYOFFICE Docs는 셀프호스팅 온라인 오피스 스위트로, 브라우저에서 문서, 스프레드시트, 프레젠테이션을 편집할 수 있습니다. Microsoft Office 형식(DOCX, XLSX, PPTX)과 완전 호환. 실시간 공동 편집 지원.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: ONLYOFFICE Docs에 접속할 도메인
            - key: JWT_SECRET
              type: STRING
              name: JWT 시크릿
              description: JSON Web Token 인증 시크릿 키
        readme: |
            # ONLYOFFICE Docs

            셀프호스팅 온라인 오피스 스위트. 브라우저에서 문서, 스프레드시트, 프레젠테이션을 편집. Microsoft Office 형식과 완전 호환.

            ## 배포 후 할 수 있는 것

            도메인에 접속하여 서버 작동을 확인. ONLYOFFICE Docs는 API를 통해 다른 애플리케이션(Nextcloud, Seafile 등)과 통합하도록 설계되었습니다.

            **문서 편집:** DOCX, ODT, RTF, PDF 지원. 변경 추적, 댓글, 목차, 메일 병합.

            **스프레드시트:** 수식, 피벗 테이블, 차트, 조건부 서식. XLSX, ODS, CSV 지원.

            **프레젠테이션:** 애니메이션, 전환 효과, 발표자 노트. PPTX, ODP 지원.

            **협업:** 실시간 공동 편집, 커서 추적, 댓글, 채팅.

            ## 설정

            - JWT 인증: `JWT_SECRET` 자동 설정됨
            - 연결 제한: Community Edition은 최대 20개 동시 연결 지원

            ## 라이선스

            AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
    th-TH:
        description: |
            ONLYOFFICE Docs คือชุดโปรแกรมสำนักงานออนไลน์แบบ self-hosted สำหรับแก้ไขเอกสาร สเปรดชีต และงานนำเสนอในเบราว์เซอร์ รองรับรูปแบบ Microsoft Office (DOCX, XLSX, PPTX) อย่างสมบูรณ์ รองรับการแก้ไขร่วมแบบเรียลไทม์
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง ONLYOFFICE Docs
            - key: JWT_SECRET
              type: STRING
              name: JWT Secret
              description: คีย์ลับสำหรับการยืนยันตัวตน JWT
        readme: |
            # ONLYOFFICE Docs

            ชุดโปรแกรมสำนักงานออนไลน์แบบ self-hosted แก้ไขเอกสาร สเปรดชีต และงานนำเสนอ รองรับรูปแบบ Microsoft Office อย่างสมบูรณ์

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            เข้าสู่โดเมนเพื่อตรวจสอบว่าเซิร์ฟเวอร์ทำงานปกติ ONLYOFFICE Docs ออกแบบมาเพื่อเชื่อมต่อกับแอปพลิเคชันอื่น (Nextcloud, Seafile ฯลฯ) ผ่าน API

            **แก้ไขเอกสาร:** DOCX, ODT, RTF, PDF ติดตามการเปลี่ยนแปลง ความคิดเห็น สารบัญ

            **สเปรดชีต:** สูตร ตาราง Pivot กราฟ การจัดรูปแบบตามเงื่อนไข XLSX, ODS, CSV

            **งานนำเสนอ:** แอนิเมชัน ทรานซิชัน บันทึกผู้บรรยาย PPTX, ODP

            **การทำงานร่วมกัน:** แก้ไขร่วมแบบเรียลไทม์ ติดตามเคอร์เซอร์ ความคิดเห็น และแชท

            ## การตั้งค่า

            - JWT: `JWT_SECRET` ตั้งค่าอัตโนมัติ
            - จำกัดการเชื่อมต่อ: Community Edition รองรับสูงสุด 20 การเชื่อมต่อพร้อมกัน

            ## สัญญาอนุญาต

            AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
    zh-CN:
        description: |
            ONLYOFFICE Docs 是自托管的在线办公套件，可在浏览器中编辑文档、电子表格和演示文稿。完全兼容 Microsoft Office 格式（DOCX、XLSX、PPTX）。支持多人实时协同编辑。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 ONLYOFFICE Docs 的域名
            - key: JWT_SECRET
              type: STRING
              name: JWT 密钥
              description: JSON Web Token 认证密钥
        readme: |
            # ONLYOFFICE Docs

            自托管的在线办公套件。编辑文档、电子表格和演示文稿，完全兼容 Microsoft Office 格式。支持多人实时协同编辑。

            ## 部署后可以做什么

            打开域名查看欢迎页面。ONLYOFFICE Docs 通过 API 集成到其他应用（Nextcloud、Seafile 等）。

            **文档编辑：** 支持 DOCX、ODT、RTF、PDF 等格式。修订跟踪、批注、目录、邮件合并。

            **电子表格：** 公式、数据透视表、图表、条件格式化。支持 XLSX、ODS、CSV。

            **演示文稿：** 动画、过渡效果、演讲者备注。支持 PPTX 和 ODP。

            **协作：** 实时协同编辑，光标追踪、批注和聊天。

            ## 设置

            - JWT 认证：`JWT_SECRET` 已自动设置
            - 连接限制：社区版最多 20 个同时连接

            ## 授权

            AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
    zh-TW:
        description: |
            ONLYOFFICE Docs 是自架的線上辦公套件，可在瀏覽器中編輯文件、試算表和簡報。完整相容 Microsoft Office 格式（DOCX、XLSX、PPTX）。支援多人即時協作編輯。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 ONLYOFFICE Docs 的網域
            - key: JWT_SECRET
              type: STRING
              name: JWT 密鑰
              description: JSON Web Token 驗證密鑰
        readme: |
            # ONLYOFFICE Docs

            自架的線上辦公套件，完全在瀏覽器中運行。編輯文件、試算表和簡報，完整相容 Microsoft Office 格式。支援多人即時協作編輯。

            ## 部署後可以做什麼

            開啟網域查看歡迎頁面，確認伺服器運行正常。ONLYOFFICE Docs 設計為透過 API 整合到其他應用（Nextcloud、Seafile、ownCloud 等）。

            **文件編輯：** 全功能文字處理器，支援 DOCX、ODT、RTF、PDF 等格式。追蹤修訂、註解、目錄、合併列印。

            **試算表編輯：** 完整試算表編輯器，支援公式、樞紐分析表、圖表、條件格式化、資料驗證。支援 XLSX、ODS、CSV。

            **簡報編輯：** 投影片編輯器，支援動畫、轉場效果、演講者備註。支援 PPTX 和 ODP 格式。

            **協作：** 即時共同編輯，支援游標追蹤、註解和聊天。

            ## 設定

            - **JWT 驗證：** `JWT_SECRET` 已自動設定。所有 API 請求必須包含有效的 JWT。
            - **連線限制：** 社群版支援最多 20 個同時連線。
            - **整合：** API 端點在 `https://<你的網域>/web-apps/apps/api/documents/api.js`

            ## 授權

            AGPL-3.0 — [GitHub](https://github.com/ONLYOFFICE/DocumentServer)
