# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Wastebin
spec:
    description: |
        Wastebin is a lightweight, fast pastebin application built with Rust. It features syntax highlighting for over 250 languages, optional paste expiration, URL-based and password-based paste access, and a clean dark/light theme interface. Data is stored in an embedded SQLite database.
    coverImage: https://raw.githubusercontent.com/matze/wastebin/master/assets/screenshot.webp
    icon: https://raw.githubusercontent.com/matze/wastebin/master/assets/favicon.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Wastebin
    tags:
        - Pastebin
        - Productivity
        - Developer-Tools
    readme: |
        # Wastebin

        Wastebin is a minimal, fast pastebin built with Rust that supports syntax highlighting, paste expiration, and multiple themes.

        ## What You Can Do After Deployment

        1. **Visit your domain** — Open the Wastebin web interface and start creating pastes
        2. **Create a paste** — Write or paste code/text with automatic syntax detection
        3. **Set expiration** — Configure pastes to expire after a specified duration
        4. **Share via URL** — Each paste gets a unique URL for easy sharing
        5. **Switch themes** — Choose from multiple syntax highlighting themes

        ## Key Features

        - Syntax highlighting for 250+ languages
        - Configurable paste expiration
        - Multiple color themes (ayu, dracula, monokai, and more)
        - Password-protected pastes
        - Burn-after-reading option
        - REST API for programmatic access
        - QR code generation for paste URLs
        - Dark and light mode support
        - Lightweight and fast (built with Rust)

        ## License

        MIT — [GitHub](https://github.com/matze/wastebin)
    services:
        - name: wastebin
          icon: https://raw.githubusercontent.com/matze/wastebin/master/assets/favicon.png
          template: PREBUILT_V2
          spec:
            source:
                image: quxfoo/wastebin:3.4.0
            ports:
                - id: web
                  port: 8088
                  type: HTTP
            volumes:
                - id: data
                  dir: /data
            env:
                WASTEBIN_ADDRESS_PORT:
                    default: 0.0.0.0:8088
                    expose: false
                WASTEBIN_DATABASE_PATH:
                    default: /data/state.db
                    expose: false
                WASTEBIN_MAX_BODY_SIZE:
                    default: "1048576"
                    expose: true
                WASTEBIN_THEME:
                    default: ayu
                    expose: true
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Wastebin es una aplicación Pastebin ligera y rápida construida con Rust. Ofrece resaltado de sintaxis para más de 250 lenguajes, expiración opcional de pegados, múltiples temas y una interfaz limpia con modo oscuro y claro.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Wastebin
        readme: |
            # Wastebin

            Wastebin es un Pastebin mínimo y rápido construido con Rust que soporta resaltado de sintaxis, expiración y múltiples temas.

            ## Qué puedes hacer después del despliegue

            1. **Visitar tu dominio** — Abre la interfaz web de Wastebin para crear pegados
            2. **Crear un pegado** — Escribe o pega código/texto con detección automática de sintaxis
            3. **Establecer expiración** — Configura la expiración después de un tiempo determinado
            4. **Compartir por URL** — Cada pegado tiene una URL única para compartir fácilmente
            5. **Cambiar temas** — Elige entre múltiples temas de resaltado de sintaxis

            ## Características principales

            - Resaltado de sintaxis para 250+ lenguajes
            - Expiración configurable de pegados
            - Múltiples temas de color (ayu, dracula, monokai y más)
            - Pegados protegidos con contraseña
            - Opción de destruir después de leer
            - API REST para acceso programático
            - Generación de códigos QR para URLs de pegados
            - Modo oscuro y claro
            - Ligero y rápido (construido con Rust)

            ## Licencia

            MIT — [GitHub](https://github.com/matze/wastebin)
    id-ID:
        description: |
            Wastebin adalah aplikasi Pastebin ringan dan cepat yang dibangun dengan Rust. Mendukung penyorotan sintaks untuk 250+ bahasa, kedaluwarsa opsional, berbagai tema, dan antarmuka bersih dengan mode gelap dan terang.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Wastebin
        readme: |
            # Wastebin

            Wastebin adalah Pastebin minimal dan cepat yang dibangun dengan Rust, mendukung penyorotan sintaks, kedaluwarsa, dan berbagai tema.

            ## Yang Dapat Dilakukan Setelah Deploy

            1. **Kunjungi domain Anda** — Buka antarmuka web Wastebin untuk mulai membuat paste
            2. **Buat paste** — Tulis atau tempel kode/teks dengan deteksi sintaks otomatis
            3. **Atur kedaluwarsa** — Konfigurasikan paste untuk kedaluwarsa setelah durasi tertentu
            4. **Bagikan via URL** — Setiap paste mendapat URL unik untuk dibagikan
            5. **Ganti tema** — Pilih dari berbagai tema penyorotan sintaks

            ## Fitur Utama

            - Penyorotan sintaks untuk 250+ bahasa
            - Kedaluwarsa paste yang dapat dikonfigurasi
            - Berbagai tema warna (ayu, dracula, monokai, dan lainnya)
            - Paste dilindungi kata sandi
            - Opsi hancur setelah dibaca
            - REST API untuk akses programatik
            - Pembuatan kode QR untuk URL paste
            - Mode gelap dan terang
            - Ringan dan cepat (dibangun dengan Rust)

            ## Lisensi

            MIT — [GitHub](https://github.com/matze/wastebin)
    ja-JP:
        description: |
            Wastebin は Rust で構築された軽量で高速な Pastebin アプリケーションです。250 以上の言語のシンタックスハイライト、ペーストの有効期限設定、複数のテーマ、クリーンなダーク/ライトインターフェースを備えています。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Wastebin にアクセスするためのドメイン
        readme: |
            # Wastebin

            Wastebin は Rust で構築されたミニマルで高速な Pastebin で、シンタックスハイライト、有効期限、複数テーマに対応しています。

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

            1. **ドメインにアクセス** — Wastebin のウェブインターフェースでペーストの作成を開始
            2. **ペーストを作成** — コードやテキストを入力し、構文を自動検出
            3. **有効期限を設定** — ペーストが指定時間後に期限切れになるよう設定
            4. **URL で共有** — 各ペーストに固有の URL が付与され簡単に共有
            5. **テーマ切替** — 複数のシンタックスハイライトテーマから選択

            ## 主な機能

            - 250 以上の言語のシンタックスハイライト
            - ペーストの有効期限設定
            - 複数のカラーテーマ（ayu、dracula、monokai など）
            - パスワード保護ペースト
            - 閲覧後消去オプション
            - REST API によるプログラマティックアクセス
            - ペースト URL の QR コード生成
            - ダークモードとライトモード
            - 軽量で高速（Rust 製）

            ## ライセンス

            MIT — [GitHub](https://github.com/matze/wastebin)
    ko-KR:
        description: |
            Wastebin은 Rust로 만들어진 가볍고 빠른 Pastebin 애플리케이션입니다. 250개 이상의 언어 구문 강조, 선택적 만료, 다양한 테마, 깔끔한 다크/라이트 인터페이스를 제공합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Wastebin에 접속할 도메인
        readme: |
            # Wastebin

            Wastebin은 Rust로 만들어진 미니멀하고 빠른 Pastebin으로 구문 강조, 만료, 다양한 테마를 지원합니다.

            ## 배포 후 할 수 있는 것

            1. **도메인 방문** — Wastebin 웹 인터페이스에서 붙여넣기 작성 시작
            2. **붙여넣기 작성** — 코드/텍스트를 작성하거나 붙여넣어 구문 자동 감지
            3. **만료 설정** — 지정 시간 후 만료되도록 설정
            4. **URL로 공유** — 각 붙여넣기마다 고유 URL 제공
            5. **테마 전환** — 다양한 구문 강조 테마에서 선택

            ## 주요 기능

            - 250개 이상 언어의 구문 강조
            - 붙여넣기 만료 시간 설정 가능
            - 다양한 색상 테마 (ayu, dracula, monokai 등)
            - 비밀번호 보호 붙여넣기
            - 열람 후 삭제 옵션
            - REST API 프로그래밍 접근
            - 붙여넣기 URL QR 코드 생성
            - 다크 및 라이트 모드
            - 가볍고 빠름 (Rust 제작)

            ## 라이선스

            MIT — [GitHub](https://github.com/matze/wastebin)
    th-TH:
        description: |
            Wastebin เป็นแอปพลิเคชัน Pastebin ที่เบาและเร็วสร้างด้วย Rust รองรับการเน้นไวยากรณ์สำหรับ 250+ ภาษา ตั้งเวลาหมดอายุได้ มีหลายธีม และอินเทอร์เฟซสะอาดพร้อมโหมดมืดและสว่าง
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Wastebin
        readme: |
            # Wastebin

            Wastebin เป็น Pastebin เรียบง่ายและเร็วที่สร้างด้วย Rust รองรับการเน้นไวยากรณ์ การหมดอายุ และหลายธีม

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

            1. **เข้าสู่โดเมน** — เปิดหน้าเว็บ Wastebin เพื่อเริ่มสร้าง paste
            2. **สร้าง paste** — เขียนหรือวางโค้ด/ข้อความพร้อมตรวจจับไวยากรณ์อัตโนมัติ
            3. **ตั้งเวลาหมดอายุ** — กำหนดให้ paste หมดอายุหลังจากระยะเวลาที่กำหนด
            4. **แชร์ผ่าน URL** — แต่ละ paste ได้รับ URL เฉพาะสำหรับแชร์
            5. **เปลี่ยนธีม** — เลือกจากธีมการเน้นไวยากรณ์หลายแบบ

            ## คุณสมบัติหลัก

            - เน้นไวยากรณ์สำหรับ 250+ ภาษา
            - ตั้งเวลาหมดอายุ paste ได้
            - หลายธีมสี (ayu, dracula, monokai และอื่นๆ)
            - paste ป้องกันด้วยรหัสผ่าน
            - ตัวเลือกทำลายหลังอ่าน
            - REST API สำหรับเข้าถึงแบบโปรแกรม
            - สร้าง QR code สำหรับ URL paste
            - โหมดมืดและสว่าง
            - เบาและเร็ว (สร้างด้วย Rust)

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

            MIT — [GitHub](https://github.com/matze/wastebin)
    zh-CN:
        description: |
            Wastebin 是一个使用 Rust 开发的轻量级快速 Pastebin 应用。支持超过 250 种语言的语法高亮、可选的粘贴过期、多种主题，以及简洁的深色/浅色界面。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Wastebin 的域名
        readme: |
            # Wastebin

            Wastebin 是一个使用 Rust 开发的极简快速 Pastebin，支持语法高亮、粘贴过期和多种主题。

            ## 部署后可以做什么

            1. **打开域名** — 进入 Wastebin 网页界面开始创建粘贴
            2. **创建粘贴** — 撰写或粘贴代码/文字，自动检测语法
            3. **设置过期** — 设置粘贴在指定时间后过期
            4. **通过 URL 分享** — 每个粘贴都有唯一的 URL 方便分享
            5. **切换主题** — 从多种语法高亮主题中选择

            ## 主要功能

            - 支持 250+ 语言的语法高亮
            - 可设置粘贴过期时间
            - 多种色彩主题（ayu、dracula、monokai 等）
            - 密码保护粘贴
            - 阅后即焚选项
            - REST API 编程访问
            - 粘贴 URL 二维码生成
            - 深色和浅色模式
            - 轻量且快速（Rust 开发）

            ## 授权

            MIT — [GitHub](https://github.com/matze/wastebin)
    zh-TW:
        description: |
            Wastebin 是一個使用 Rust 開發的輕量級快速 Pastebin 應用程式。支援超過 250 種語言的語法高亮、可選的貼文過期、多種佈景主題，以及簡潔的深色/淺色介面。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Wastebin 的網域
        readme: |
            # Wastebin

            Wastebin 是一個使用 Rust 開發的極簡快速 Pastebin，支援語法高亮、貼文過期和多種主題。

            ## 部署後可以做什麼

            1. **開啟網域** — 進入 Wastebin 網頁介面開始建立貼文
            2. **建立貼文** — 撰寫或貼上程式碼/文字，自動偵測語法
            3. **設定過期** — 設定貼文在指定時間後過期
            4. **透過 URL 分享** — 每個貼文都有唯一的 URL 方便分享
            5. **切換主題** — 從多種語法高亮主題中選擇

            ## 主要功能

            - 支援 250+ 語言的語法高亮
            - 可設定貼文過期時間
            - 多種色彩主題（ayu、dracula、monokai 等）
            - 密碼保護貼文
            - 閱後即焚選項
            - REST API 程式化存取
            - 貼文 URL QR 碼生成
            - 深色和淺色模式
            - 輕量且快速（Rust 開發）

            ## 授權

            MIT — [GitHub](https://github.com/matze/wastebin)
