# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Dufs
spec:
    description: |
        Dufs is a distinctive utility file server that supports static serving, uploading, searching, access control, and WebDAV. Drag-and-drop uploads, folder downloads as zip, resumable transfers, and a clean web UI.
    coverImage: https://avatars.githubusercontent.com/u/4012553
    icon: https://avatars.githubusercontent.com/u/4012553
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Dufs
    tags:
        - Tool
        - Storage
    readme: |
        # Dufs

        A distinctive utility file server supporting static serving, uploading, searching, access control, and WebDAV. Features a clean web UI with drag-and-drop uploads.

        ## Getting Started

        1. **Visit your domain** — the file browser interface loads immediately
        2. **Upload files** — drag and drop files or use the upload button
        3. **Download folders** — download entire folders as zip archives
        4. **Search** — search for files by name
        5. **WebDAV** — connect via any WebDAV client at the same URL

        ## Default Configuration

        - All operations are enabled (upload, delete, search, create directories)
        - Authentication is configured with username `admin` — find the password in **Service > Variables > `DUFS_AUTH`**
        - Files are stored persistently in the `/data` volume

        ## Key Features

        - Static file serving with directory listing
        - Drag-and-drop file upload
        - Folder download as zip
        - Resumable uploads and downloads
        - Full WebDAV support
        - Access control with authentication
        - File search

        ## License

        MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
    services:
        - name: dufs
          icon: https://avatars.githubusercontent.com/u/4012553
          template: PREBUILT_V2
          spec:
            source:
                image: sigoden/dufs:v0.45.0
            ports:
                - id: web
                  port: 5000
                  type: HTTP
            volumes:
                - id: dufs-data
                  dir: /data
            env:
                DUFS_ALLOW_ALL:
                    default: "true"
                DUFS_AUTH:
                    default: admin:${PASSWORD}@/:rw
                DUFS_SERVE_PATH:
                    default: /data
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Dufs es un servidor de archivos multifuncional que soporta servicio estatico, subidas, busqueda, control de acceso y WebDAV. Interfaz limpia con arrastrar y soltar.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Dufs
        readme: |
            # Dufs

            Servidor de archivos multifuncional. Servicio estatico, subidas, busqueda, control de acceso y WebDAV.

            ## Primeros pasos

            1. **Visita tu dominio** — el explorador de archivos carga inmediatamente
            2. **Sube archivos** — arrastra y suelta o usa el boton de subida
            3. **Descarga carpetas** — descarga carpetas completas como zip
            4. **Busca** — busca archivos por nombre
            5. **WebDAV** — conecta con cualquier cliente WebDAV

            ## Configuracion por defecto

            - Usuario `admin`, contrasena en **Servicio > Variables > `DUFS_AUTH`**

            ## Licencia

            MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
    id-ID:
        description: |
            Dufs adalah server file serbaguna yang mendukung layanan statis, unggah, pencarian, kontrol akses, dan WebDAV. Antarmuka bersih dengan drag-and-drop.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Dufs
        readme: |
            # Dufs

            Server file serbaguna. Layanan statis, unggah, pencarian, kontrol akses, dan WebDAV.

            ## Memulai

            1. **Buka domain** — browser file langsung dimuat
            2. **Unggah file** — drag-and-drop atau gunakan tombol unggah
            3. **Unduh folder** — unduh seluruh folder sebagai zip
            4. **Cari** — cari file berdasarkan nama
            5. **WebDAV** — hubungkan dengan klien WebDAV apa saja

            ## Pengaturan default

            - Username `admin`, password di **Service > Variables > `DUFS_AUTH`**

            ## Lisensi

            MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
    ja-JP:
        description: |
            Dufs は多機能ファイルサーバーです。静的ファイル配信、アップロード、検索、アクセス制御、WebDAVをサポート。ドラッグ＆ドロップ対応のクリーンなUI。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Dufs にアクセスするためのドメイン
        readme: |
            # Dufs

            多機能ファイルサーバー。静的配信、アップロード、検索、アクセス制御、WebDAV対応。

            ## はじめに

            1. **ドメインにアクセス** — ファイルブラウザが即座に表示
            2. **ファイルをアップロード** — ドラッグ＆ドロップまたはアップロードボタン
            3. **フォルダをダウンロード** — フォルダ全体をzipでダウンロード
            4. **検索** — ファイル名で検索
            5. **WebDAV** — 任意のWebDAVクライアントで接続

            ## デフォルト設定

            - ユーザー名 `admin`、パスワードは **サービス > Variables > `DUFS_AUTH`** で確認

            ## ライセンス

            MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
    ko-KR:
        description: |
            Dufs는 다기능 파일 서버입니다. 정적 파일 제공, 업로드, 검색, 접근 제어, WebDAV를 지원합니다. 드래그 앤 드롭 업로드와 깔끔한 UI.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Dufs에 접속할 도메인
        readme: |
            # Dufs

            다기능 파일 서버. 정적 제공, 업로드, 검색, 접근 제어, WebDAV 지원.

            ## 시작하기

            1. **도메인 접속** — 파일 브라우저가 즉시 로드
            2. **파일 업로드** — 드래그 앤 드롭 또는 업로드 버튼
            3. **폴더 다운로드** — 전체 폴더를 zip으로 다운로드
            4. **검색** — 파일 이름으로 검색
            5. **WebDAV** — 모든 WebDAV 클라이언트로 연결

            ## 기본 설정

            - 사용자명 `admin`, 비밀번호는 **서비스 > Variables > `DUFS_AUTH`** 에서 확인

            ## 라이선스

            MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
    th-TH:
        description: |
            Dufs เป็นเซิร์ฟเวอร์ไฟล์อเนกประสงค์ รองรับไฟล์สแตติก อัปโหลด ค้นหา ควบคุมการเข้าถึง และ WebDAV อินเทอร์เฟซสะอาดตาพร้อมลากและวาง
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Dufs
        readme: |
            # Dufs

            เซิร์ฟเวอร์ไฟล์อเนกประสงค์ รองรับไฟล์สแตติก อัปโหลด ค้นหา ควบคุมการเข้าถึง และ WebDAV

            ## เริ่มต้นใช้งาน

            1. **เข้าสู่โดเมน** — เบราว์เซอร์ไฟล์โหลดทันที
            2. **อัปโหลดไฟล์** — ลากและวางหรือใช้ปุ่มอัปโหลด
            3. **ดาวน์โหลดโฟลเดอร์** — ดาวน์โหลดโฟลเดอร์ทั้งหมดเป็น zip
            4. **ค้นหา** — ค้นหาไฟล์ตามชื่อ
            5. **WebDAV** — เชื่อมต่อด้วยไคลเอนต์ WebDAV ใดก็ได้

            ## การตั้งค่าเริ่มต้น

            - ชื่อผู้ใช้ `admin` รหัสผ่านดูได้ที่ **Service > Variables > `DUFS_AUTH`**

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

            MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
    zh-CN:
        description: |
            Dufs 是多功能文件服务器，支持静态文件服务、上传、搜索、访问控制和 WebDAV。拖放上传、文件夹打包下载、断点续传，界面简洁。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Dufs 的域名
        readme: |
            # Dufs

            多功能文件服务器，支持静态服务、上传、搜索、访问控制和 WebDAV。

            ## 开始使用

            1. **打开域名** — 文件浏览器界面立即加载
            2. **上传文件** — 拖放文件或使用上传按钮
            3. **下载文件夹** — 将整个文件夹下载为 zip
            4. **搜索** — 按名称搜索文件
            5. **WebDAV** — 使用任何 WebDAV 客户端连接

            ## 默认设置

            - 用户名 `admin`，密码在 **服务 > Variables > `DUFS_AUTH`** 中查看

            ## 授权

            MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
    zh-TW:
        description: |
            Dufs 是多功能檔案伺服器，支援靜態檔案服務、上傳、搜尋、存取控制和 WebDAV。拖放上傳、資料夾打包下載、斷點續傳，介面簡潔。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Dufs 的網域
        readme: |
            # Dufs

            多功能檔案伺服器，支援靜態服務、上傳、搜尋、存取控制和 WebDAV。

            ## 開始使用

            1. **開啟網域** — 檔案瀏覽器介面立即載入
            2. **上傳檔案** — 拖放檔案或使用上傳按鈕
            3. **下載資料夾** — 將整個資料夾下載為 zip
            4. **搜尋** — 按名稱搜尋檔案
            5. **WebDAV** — 使用任何 WebDAV 客戶端連線

            ## 預設設定

            - 帳號 `admin`，密碼在 **服務 > Variables > `DUFS_AUTH`** 中查看

            ## 授權

            MIT / Apache-2.0 — [GitHub](https://github.com/sigoden/dufs)
