# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Syncthing
spec:
    description: |
        Syncthing is a continuous, peer-to-peer file synchronization program. It syncs files between devices in real time with no cloud dependency. Deploy on Zeabur as an always-on sync node.
    coverImage: https://syncthing.net/img/screenshot.png
    icon: https://raw.githubusercontent.com/syncthing/syncthing/main/assets/logo-only.svg
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access the Syncthing Web UI
    tags:
        - Tool
        - File Sync
    readme: |
        # Syncthing

        Continuous peer-to-peer file synchronization. Syncs files between your devices in real time — no cloud storage required.

        Your Zeabur instance acts as an **always-on sync node**, ensuring files stay synchronized even when your other devices are offline.

        ## First Launch

        1. **Visit your domain** — the Syncthing Web UI opens directly
        2. **Set a GUI password** — go to Actions > Settings > GUI tab and set a user/password immediately
        3. **Add remote devices** — share Device IDs between your Syncthing instances
        4. **Add folders** — select which folders to sync and with which devices

        ## Key Features

        - Peer-to-peer sync — no third-party cloud involved
        - End-to-end encryption in transit
        - Cross-platform (Linux, macOS, Windows, Android)
        - Versioning and conflict handling
        - Web UI for configuration and monitoring

        ## Persistent Data

        All config and synced data are stored under `/var/syncthing` (backed by a Zeabur volume).

        ## License

        MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
    services:
        - name: syncthing
          icon: https://raw.githubusercontent.com/syncthing/syncthing/main/assets/logo-only.svg
          template: PREBUILT_V2
          spec:
            source:
                image: syncthing/syncthing:2.0.15
            ports:
                - id: web
                  port: 8384
                  type: HTTP
            volumes:
                - id: data
                  dir: /var/syncthing
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Syncthing es un programa de sincronización continua de archivos P2P. Sincroniza archivos entre dispositivos en tiempo real sin depender de la nube. Despliega en Zeabur como nodo de sincronización permanente.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a la Web UI de Syncthing
        readme: |
            # Syncthing

            Sincronización continua de archivos P2P. Sincroniza archivos entre dispositivos en tiempo real sin almacenamiento en la nube.

            Tu instancia en Zeabur actúa como un **nodo de sincronización permanente**, manteniendo los archivos sincronizados incluso cuando tus otros dispositivos están desconectados.

            ## Primer inicio

            1. **Visita tu dominio** — se abre la Web UI de Syncthing
            2. **Establece contraseña GUI** — ve a Actions > Settings > GUI y configura usuario y contraseña
            3. **Añade dispositivos remotos** — comparte los IDs de dispositivo entre instancias
            4. **Añade carpetas** — selecciona qué carpetas sincronizar y con qué dispositivos

            ## Datos persistentes

            Toda la configuración y datos sincronizados se almacenan en `/var/syncthing` (respaldado por un volumen de Zeabur).

            ## Licencia

            MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
    id-ID:
        description: |
            Syncthing adalah program sinkronisasi file P2P berkelanjutan. Sinkronkan file antar perangkat secara real time tanpa cloud. Deploy di Zeabur sebagai node sinkronisasi yang selalu online.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Syncthing Web UI
        readme: |
            # Syncthing

            Sinkronisasi file P2P berkelanjutan. Sinkronkan file antar perangkat secara real time tanpa penyimpanan cloud.

            Instance Zeabur Anda berfungsi sebagai **node sinkronisasi yang selalu online**, memastikan file tetap tersinkronisasi meskipun perangkat lain sedang offline.

            ## Peluncuran Pertama

            1. **Buka domain** — Syncthing Web UI langsung terbuka
            2. **Atur password GUI** — buka Actions > Settings > tab GUI, atur username dan password
            3. **Tambahkan perangkat remote** — bagikan Device ID antar instance Syncthing
            4. **Tambahkan folder** — pilih folder yang ingin disinkronkan dan dengan perangkat mana

            ## Data Persisten

            Semua konfigurasi dan data sinkronisasi disimpan di `/var/syncthing` (didukung volume Zeabur).

            ## Lisensi

            MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
    ja-JP:
        description: |
            Syncthing はピアツーピアの継続的ファイル同期プログラムです。クラウド不要でデバイス間をリアルタイム同期。Zeabur で常時オンの同期ノードとして稼働。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Syncthing Web UI にアクセスするためのドメイン
        readme: |
            # Syncthing

            ピアツーピアの継続的ファイル同期ツール。クラウドストレージ不要でデバイス間をリアルタイム同期。

            Zeabur インスタンスは**常時オンの同期ノード**として機能し、他のデバイスがオフラインでもファイルの同期を維持します。

            ## 初回起動

            1. **ドメインにアクセス** — Syncthing Web UI が開きます
            2. **GUI パスワードを設定** — Actions > Settings > GUI タブでユーザー名とパスワードを設定
            3. **リモートデバイスを追加** — Syncthing インスタンス間でデバイス ID を共有
            4. **フォルダを追加** — 同期するフォルダとデバイスを選択

            ## 永続データ

            設定ファイルと同期データは `/var/syncthing` に保存（Zeabur ボリュームで永続化）。

            ## ライセンス

            MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
    ko-KR:
        description: |
            Syncthing은 지속적인 P2P 파일 동기화 프로그램입니다. 클라우드 없이 기기 간 실시간 파일 동기화. Zeabur에서 항상 온라인 동기화 노드로 배포.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Syncthing Web UI에 접속할 도메인
        readme: |
            # Syncthing

            지속적인 P2P 파일 동기화 도구. 클라우드 스토리지 없이 기기 간 실시간 동기화.

            Zeabur 인스턴스는 **항상 온라인 동기화 노드**로 작동하여 다른 기기가 오프라인이어도 파일 동기화를 유지합니다.

            ## 첫 실행

            1. **도메인 접속** — Syncthing Web UI가 열립니다
            2. **GUI 비밀번호 설정** — Actions > Settings > GUI 탭에서 사용자명과 비밀번호 설정
            3. **원격 기기 추가** — Syncthing 인스턴스 간 기기 ID 공유
            4. **폴더 추가** — 동기화할 폴더와 기기 선택

            ## 영구 데이터

            모든 설정 파일과 동기화 데이터는 `/var/syncthing`에 저장 (Zeabur 볼륨으로 영구화).

            ## 라이선스

            MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
    th-TH:
        description: |
            Syncthing เป็นโปรแกรมซิงค์ไฟล์แบบ P2P อย่างต่อเนื่อง ซิงค์ไฟล์ระหว่างอุปกรณ์แบบเรียลไทม์โดยไม่ต้องพึ่งคลาวด์ ติดตั้งบน Zeabur เป็นโหนดซิงค์ที่ออนไลน์ตลอดเวลา
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Syncthing Web UI
        readme: |
            # Syncthing

            ซิงค์ไฟล์แบบ P2P อย่างต่อเนื่อง ซิงค์ไฟล์ระหว่างอุปกรณ์แบบเรียลไทม์โดยไม่ต้องใช้คลาวด์สตอเรจ

            อินสแตนซ์ Zeabur ของคุณทำหน้าที่เป็น**โหนดซิงค์ที่ออนไลน์ตลอดเวลา** ช่วยให้ไฟล์ซิงค์อยู่เสมอแม้อุปกรณ์อื่นออฟไลน์

            ## การเปิดใช้งานครั้งแรก

            1. **เข้าสู่โดเมน** — Syncthing Web UI จะเปิดขึ้น
            2. **ตั้งรหัสผ่าน GUI** — ไปที่ Actions > Settings > แท็บ GUI ตั้งชื่อผู้ใช้และรหัสผ่าน
            3. **เพิ่มอุปกรณ์ระยะไกล** — แชร์ Device ID ระหว่างอินสแตนซ์ Syncthing
            4. **เพิ่มโฟลเดอร์** — เลือกโฟลเดอร์ที่จะซิงค์และอุปกรณ์เป้าหมาย

            ## ข้อมูลถาวร

            ไฟล์การตั้งค่าและข้อมูลซิงค์ทั้งหมดเก็บไว้ที่ `/var/syncthing` (สำรองด้วย Zeabur volume)

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

            MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
    zh-CN:
        description: |
            Syncthing 是持续性的点对点文件同步工具。在设备之间实时同步文件，无需依赖云端。部署在 Zeabur 上作为永远在线的同步节点。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Syncthing Web UI 的域名
        readme: |
            # Syncthing

            持续性的点对点文件同步工具，在设备间实时同步文件，无需云存储。

            您的 Zeabur 实例可作为**永远在线的同步节点**，确保即使其他设备离线，文件仍保持同步。

            ## 首次启动

            1. **打开域名** — Syncthing Web UI 直接打开
            2. **设置 GUI 密码** — 前往 Actions > Settings > GUI 选项卡，立即设置账号密码
            3. **添加远程设备** — 在 Syncthing 实例之间分享设备 ID
            4. **添加文件夹** — 选择要同步的文件夹及目标设备

            ## 持久化数据

            所有配置文件和同步数据存储在 `/var/syncthing`（由 Zeabur 磁盘卷支持）。

            ## 授权

            MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
    zh-TW:
        description: |
            Syncthing 是持續性的點對點檔案同步工具。在裝置之間即時同步檔案，無需依賴雲端。部署在 Zeabur 上作為永遠在線的同步節點。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Syncthing Web UI 的網域
        readme: |
            # Syncthing

            持續性的點對點檔案同步工具，在裝置間即時同步檔案，無需雲端儲存。

            您的 Zeabur 執行個體可作為**永遠在線的同步節點**，確保即使其他裝置離線，檔案仍保持同步。

            ## 首次啟動

            1. **開啟網域** — Syncthing Web UI 直接開啟
            2. **設定 GUI 密碼** — 前往 Actions > Settings > GUI 分頁，立即設定帳號密碼
            3. **新增遠端裝置** — 在 Syncthing 實例之間分享裝置 ID
            4. **新增資料夾** — 選擇要同步的資料夾及目標裝置

            ## 持久化資料

            所有設定檔和同步資料儲存在 `/var/syncthing`（由 Zeabur 磁碟區支援）。

            ## 授權

            MPL-2.0 — [GitHub](https://github.com/syncthing/syncthing)
