# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Gokapi
spec:
    description: |
        Gokapi is a lightweight, self-hosted file sharing server where shared files expire after a set number of downloads or a time limit. A modern, self-hosted alternative to Firefox Send with admin management and API access.
    coverImage: https://github.com/user-attachments/assets/d805a88b-dc74-4c39-bed6-ec31b9c3e17f
    icon: https://raw.githubusercontent.com/Forceu/Gokapi/master/internal/webserver/web/static/defaultFavicon.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Gokapi
    tags:
        - Tool
        - Productivity
    readme: |
        # Gokapi

        A lightweight, self-hosted file sharing server with expiring downloads. Shared files automatically expire after a configured number of downloads or time limit — a modern alternative to Firefox Send.

        ## What You Can Do After Deployment

        1. **Visit your domain** — complete the initial setup wizard to create an admin account
        2. **Upload files** — drag and drop files to share with expiring download links
        3. **Set expiration rules** — configure download limits and time-based expiration per file
        4. **Manage shared files** — view active shares, download counts, and delete files
        5. **Use the API** — integrate file sharing into your own workflows via the REST API

        ## Key Features

        - Files expire after a set number of downloads or time limit
        - Admin dashboard for file management
        - Password-protected downloads
        - End-to-end encryption support
        - REST API for programmatic access
        - Multiple storage backends (local, S3-compatible)
        - User management with permission levels
        - Lightweight single binary with low resource usage

        ## License

        AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
    services:
        - name: gokapi
          icon: https://raw.githubusercontent.com/Forceu/Gokapi/master/internal/webserver/web/static/defaultFavicon.png
          template: PREBUILT_V2
          spec:
            source:
                image: f0rc3/gokapi:v2.2.4
            ports:
                - id: web
                  port: 53842
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/data
                - id: config
                  dir: /app/config
            env:
                GOKAPI_PORT:
                    default: "53842"
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Gokapi es un servidor ligero de compartición de archivos autoalojado donde los archivos compartidos expiran tras un número de descargas o un límite de tiempo. Una alternativa moderna a Firefox Send.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Gokapi
        readme: |
            # Gokapi

            Servidor ligero de compartición de archivos autoalojado con descargas que expiran. Los archivos compartidos expiran automáticamente tras un número de descargas o un límite de tiempo.

            ## Qué puedes hacer después del despliegue

            1. **Visita tu dominio** — completa el asistente de configuración para crear una cuenta de administrador
            2. **Sube archivos** — arrastra y suelta para crear enlaces de descarga con expiración
            3. **Configura reglas de expiración** — establece límites de descargas y expiración por tiempo
            4. **Gestiona archivos compartidos** — visualiza comparticiones activas, conteos de descargas y elimina archivos
            5. **Usa la API** — integra la compartición de archivos en tus flujos de trabajo vía REST API

            ## Licencia

            AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
    id-ID:
        description: |
            Gokapi adalah server berbagi file self-hosted yang ringan, di mana file yang dibagikan kedaluwarsa setelah jumlah unduhan atau batas waktu tertentu. Alternatif modern untuk Firefox Send.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Gokapi
        readme: |
            # Gokapi

            Server berbagi file self-hosted yang ringan dengan unduhan yang kedaluwarsa. File yang dibagikan otomatis kedaluwarsa setelah jumlah unduhan atau batas waktu yang ditentukan.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — selesaikan wizard pengaturan awal untuk membuat akun admin
            2. **Upload file** — seret dan lepas untuk membuat tautan unduh dengan kedaluwarsa
            3. **Atur aturan kedaluwarsa** — konfigurasi batas unduhan dan waktu kedaluwarsa per file
            4. **Kelola file yang dibagikan** — lihat berbagi aktif, jumlah unduhan, dan hapus file
            5. **Gunakan API** — integrasikan berbagi file ke alur kerja Anda melalui REST API

            ## Lisensi

            AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
    ja-JP:
        description: |
            Gokapi は軽量なセルフホスト型ファイル共有サーバーです。共有ファイルはダウンロード回数や期限に達すると自動的に期限切れになります。Firefox Sendの代替として。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Gokapi にアクセスするためのドメイン
        readme: |
            # Gokapi

            軽量なセルフホスト型ファイル共有サーバー。共有ファイルは設定したダウンロード回数や期限で自動的に期限切れに。

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

            1. **ドメインにアクセス** — 初期設定ウィザードで管理者アカウントを作成
            2. **ファイルをアップロード** — ドラッグ＆ドロップで期限付きダウンロードリンクを作成
            3. **有効期限を設定** — ファイルごとにダウンロード回数制限と期限を設定
            4. **共有ファイルを管理** — アクティブな共有、ダウンロード数の確認・削除
            5. **APIを使用** — REST APIでファイル共有をワークフローに統合

            ## ライセンス

            AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
    ko-KR:
        description: |
            Gokapi는 경량 셀프 호스팅 파일 공유 서버로, 공유 파일이 다운로드 횟수 또는 시간 제한에 도달하면 자동 만료됩니다. Firefox Send의 현대적 대안.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Gokapi에 접속할 도메인
        readme: |
            # Gokapi

            경량 셀프 호스팅 파일 공유 서버. 공유 파일이 설정된 다운로드 횟수 또는 시간 제한 후 자동 만료.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — 초기 설정 마법사로 관리자 계정 생성
            2. **파일 업로드** — 드래그 앤 드롭으로 만료 다운로드 링크 생성
            3. **만료 규칙 설정** — 파일별 다운로드 횟수 제한 및 시간 만료 구성
            4. **공유 파일 관리** — 활성 공유, 다운로드 수 확인 및 파일 삭제
            5. **API 사용** — REST API로 파일 공유를 워크플로에 통합

            ## 라이선스

            AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
    th-TH:
        description: |
            Gokapi เป็นเซิร์ฟเวอร์แชร์ไฟล์แบบ self-hosted น้ำหนักเบา ไฟล์ที่แชร์จะหมดอายุหลังจากถึงจำนวนดาวน์โหลดหรือเวลาที่กำหนด เป็นทางเลือกสมัยใหม่แทน Firefox Send
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Gokapi
        readme: |
            # Gokapi

            เซิร์ฟเวอร์แชร์ไฟล์แบบ self-hosted น้ำหนักเบา พร้อมดาวน์โหลดที่หมดอายุ ไฟล์ที่แชร์จะหมดอายุอัตโนมัติหลังจากถึงจำนวนดาวน์โหลดหรือเวลาที่กำหนด

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

            1. **เข้าสู่โดเมน** — ทำตามวิซาร์ดตั้งค่าเริ่มต้นเพื่อสร้างบัญชีแอดมิน
            2. **อัปโหลดไฟล์** — ลากแล้ววางเพื่อสร้างลิงก์ดาวน์โหลดที่หมดอายุ
            3. **ตั้งกฎหมดอายุ** — กำหนดจำนวนดาวน์โหลดและเวลาหมดอายุต่อไฟล์
            4. **จัดการไฟล์ที่แชร์** — ดูการแชร์ที่ใช้งานอยู่ จำนวนดาวน์โหลด และลบไฟล์
            5. **ใช้ API** — รวมการแชร์ไฟล์เข้ากับเวิร์กโฟลว์ผ่าน REST API

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

            AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
    zh-CN:
        description: |
            Gokapi 是轻量级的自托管文件分享服务器，分享的文件会在达到下载次数或时间限制后自动过期。是 Firefox Send 的现代自托管替代方案。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Gokapi 的域名
        readme: |
            # Gokapi

            轻量级的自托管文件分享服务器，具有过期下载功能。分享的文件会在设定的下载次数或时间限制后自动过期。

            ## 部署后可以做什么

            1. **打开域名** — 完成初始设置向导以创建管理员账号
            2. **上传文件** — 拖放文件以创建带有过期下载链接的分享
            3. **设置过期规则** — 为每个文件配置下载次数限制和时间过期
            4. **管理分享文件** — 查看活跃分享、下载次数，并删除文件
            5. **使用 API** — 通过 REST API 将文件分享集成到您的工作流

            ## 授权

            AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
    zh-TW:
        description: |
            Gokapi 是輕量級的自架檔案分享伺服器，分享的檔案會在達到下載次數或時間限制後自動過期。是 Firefox Send 的現代自架替代方案。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Gokapi 的網域
        readme: |
            # Gokapi

            輕量級的自架檔案分享伺服器，具有過期下載功能。分享的檔案會在設定的下載次數或時間限制後自動過期。

            ## 部署後可以做什麼

            1. **開啟網域** — 完成初始設定精靈以建立管理員帳號
            2. **上傳檔案** — 拖放檔案以建立帶有過期下載連結的分享
            3. **設定過期規則** — 為每個檔案設定下載次數限制和時間過期
            4. **管理分享檔案** — 查看作用中的分享、下載次數，並刪除檔案
            5. **使用 API** — 透過 REST API 將檔案分享整合到您的工作流程

            ## 授權

            AGPL-3.0 — [GitHub](https://github.com/Forceu/Gokapi)
