# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: TheLounge
spec:
    description: |
        Self-hosted web IRC client. Modern, responsive, and cross-platform with push notifications, link previews, file uploads, and multi-user support.
    coverImage: https://raw.githubusercontent.com/thelounge/thelounge/master/client/img/logo-vertical-transparent-bg.svg
    icon: https://raw.githubusercontent.com/thelounge/thelounge/master/client/img/logo-vertical-transparent-bg.svg
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access TheLounge
    tags:
        - Tool
    readme: |
        # TheLounge

        A modern, responsive, cross-platform, self-hosted web IRC client.

        ## First-Time Setup

        1. After deployment, open `https://${ZEABUR_WEB_URL}` in your browser.
        2. Create your first user by opening the service console on Zeabur and running:
           ```
           thelounge add <username>
           ```
        3. You will be prompted to set a password. Once done, log in via the web UI.

        ## Features

        - Multi-user support with private messaging
        - Push notifications and desktop alerts
        - Link previews with thumbnails
        - File upload support
        - Synchronized scrollback across devices
        - LDAP/HTTP authentication support
        - Persistent connections (IRC stays online when you close the browser)

        ## Configuration

        - Config file is located at `/var/opt/thelounge/config.js` inside the container.
        - User data and logs are stored in `/var/opt/thelounge/`.
        - Mount a persistent volume to `/var/opt/thelounge` to retain data across restarts.

        ## Useful Links

        - [Official Documentation](https://thelounge.chat/docs)
        - [GitHub Repository](https://github.com/thelounge/thelounge)

        ## License

        MIT — [GitHub](https://github.com/thelounge/thelounge)
    services:
        - name: thelounge
          icon: https://raw.githubusercontent.com/thelounge/thelounge/master/client/img/logo-vertical-transparent-bg.svg
          template: PREBUILT_V2
          spec:
            source:
                image: thelounge/thelounge:4.4.3
            ports:
                - id: web
                  port: 9000
                  type: HTTP
            volumes:
                - id: data
                  dir: /var/opt/thelounge
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Cliente web IRC autoalojado. Moderno, responsivo y multiplataforma con notificaciones push, vista previa de enlaces, carga de archivos y soporte multiusuario.
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: Dominio
              description: El dominio para acceder a TheLounge
        readme: |
            # TheLounge

            Un cliente web IRC autoalojado, moderno, responsivo y multiplataforma.

            ## Configuración inicial

            1. Después del despliegue, abre `https://${ZEABUR_WEB_URL}` en tu navegador.
            2. Crea tu primer usuario abriendo la consola del servicio en Zeabur y ejecutando:
               ```
               thelounge add <nombre_de_usuario>
               ```
            3. Establece una contraseña cuando se te solicite e inicia sesión a través de la interfaz web.

            ## Características

            - Soporte multiusuario y mensajes privados
            - Notificaciones push y alertas de escritorio
            - Vista previa de enlaces con miniaturas
            - Carga de archivos
            - Historial de desplazamiento sincronizado entre dispositivos
            - Soporte de autenticación LDAP/HTTP
            - Conexiones persistentes (IRC permanece en línea al cerrar el navegador)

            ## Configuración

            - El archivo de configuración se encuentra en `/var/opt/thelounge/config.js` dentro del contenedor.
            - Los datos de usuario y registros se almacenan en `/var/opt/thelounge/`.
            - Monta un volumen persistente en `/var/opt/thelounge` para conservar los datos tras reinicios.

            ## Enlaces

            - [Documentación oficial](https://thelounge.chat/docs)
            - [Repositorio en GitHub](https://github.com/thelounge/thelounge)

            ## Licencia

            MIT — [GitHub](https://github.com/thelounge/thelounge)
    id-ID:
        description: |
            Klien web IRC self-hosted. Modern, responsif, dan lintas platform dengan notifikasi push, pratinjau tautan, unggah file, dan dukungan multi-pengguna.
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: Domain
              description: Domain untuk mengakses TheLounge
        readme: |
            # TheLounge

            Klien web IRC self-hosted yang modern, responsif, dan lintas platform.

            ## Pengaturan Awal

            1. Setelah deployment, buka `https://${ZEABUR_WEB_URL}` di browser Anda.
            2. Buat pengguna pertama dengan membuka konsol layanan di Zeabur dan jalankan:
               ```
               thelounge add <nama_pengguna>
               ```
            3. Atur kata sandi saat diminta, lalu masuk melalui antarmuka web.

            ## Fitur

            - Dukungan multi-pengguna dan pesan pribadi
            - Notifikasi push dan peringatan desktop
            - Pratinjau tautan dengan thumbnail
            - Unggah file
            - Riwayat scroll tersinkronisasi antar perangkat
            - Dukungan autentikasi LDAP/HTTP
            - Koneksi persisten (IRC tetap online saat browser ditutup)

            ## Konfigurasi

            - File konfigurasi terletak di `/var/opt/thelounge/config.js` dalam kontainer.
            - Data pengguna dan log disimpan di `/var/opt/thelounge/`.
            - Mount volume persisten ke `/var/opt/thelounge` untuk mempertahankan data setelah restart.

            ## Tautan

            - [Dokumentasi resmi](https://thelounge.chat/docs)
            - [Repositori GitHub](https://github.com/thelounge/thelounge)

            ## Lisensi

            MIT — [GitHub](https://github.com/thelounge/thelounge)
    ja-JP:
        description: |
            セルフホスト型 Web IRC クライアント。モダンでレスポンシブ、クロスプラットフォーム対応。プッシュ通知、リンクプレビュー、ファイルアップロード、マルチユーザーをサポート。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: ドメイン
              description: TheLounge にアクセスするためのドメイン
        readme: |
            # TheLounge

            モダンでレスポンシブ、クロスプラットフォーム対応のセルフホスト型 Web IRC クライアント。

            ## 初回セットアップ

            1. デプロイ後、ブラウザで `https://${ZEABUR_WEB_URL}` を開きます。
            2. Zeabur サービスコンソールで以下のコマンドを実行して最初のユーザーを作成します：
               ```
               thelounge add <ユーザー名>
               ```
            3. パスワードを設定したら、Web UI からログインできます。

            ## 機能

            - マルチユーザー対応とプライベートメッセージ
            - プッシュ通知とデスクトップアラート
            - リンクプレビューとサムネイル
            - ファイルアップロード
            - デバイス間のスクロール履歴同期
            - LDAP/HTTP 認証対応
            - 永続接続（ブラウザを閉じても IRC はオンラインを維持）

            ## 設定

            - 設定ファイルはコンテナ内の `/var/opt/thelounge/config.js` にあります。
            - ユーザーデータとログは `/var/opt/thelounge/` に保存されます。
            - `/var/opt/thelounge` に永続ボリュームをマウントして、再起動後もデータを保持してください。

            ## リンク

            - [公式ドキュメント](https://thelounge.chat/docs)
            - [GitHub リポジトリ](https://github.com/thelounge/thelounge)

            ## ライセンス

            MIT — [GitHub](https://github.com/thelounge/thelounge)
    ko-KR:
        description: |
            셀프 호스팅 Web IRC 클라이언트. 모던하고 반응형이며 크로스 플랫폼을 지원합니다. 푸시 알림, 링크 미리보기, 파일 업로드, 다중 사용자를 지원합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 도메인
              description: TheLounge에 접속할 도메인
        readme: |
            # TheLounge

            모던하고 반응형이며 크로스 플랫폼을 지원하는 셀프 호스팅 Web IRC 클라이언트.

            ## 초기 설정

            1. 배포 후 브라우저에서 `https://${ZEABUR_WEB_URL}`을 엽니다.
            2. Zeabur 서비스 콘솔에서 다음 명령을 실행하여 첫 번째 사용자를 생성합니다:
               ```
               thelounge add <사용자이름>
               ```
            3. 비밀번호를 설정한 후 웹 UI에서 로그인합니다.

            ## 기능

            - 다중 사용자 지원 및 개인 메시지
            - 푸시 알림 및 데스크톱 알림
            - 링크 미리보기 및 썸네일
            - 파일 업로드
            - 기기 간 스크롤 기록 동기화
            - LDAP/HTTP 인증 지원
            - 영구 연결 (브라우저를 닫아도 IRC 온라인 유지)

            ## 설정

            - 설정 파일은 컨테이너 내 `/var/opt/thelounge/config.js`에 있습니다.
            - 사용자 데이터와 로그는 `/var/opt/thelounge/`에 저장됩니다.
            - `/var/opt/thelounge`에 영구 볼륨을 마운트하여 재시작 후에도 데이터를 유지하세요.

            ## 링크

            - [공식 문서](https://thelounge.chat/docs)
            - [GitHub 저장소](https://github.com/thelounge/thelounge)

            ## 라이선스

            MIT — [GitHub](https://github.com/thelounge/thelounge)
    th-TH:
        description: |
            เว็บ IRC ไคลเอนต์แบบ self-hosted ทันสมัย ตอบสนองรวดเร็ว ข้ามแพลตฟอร์ม รองรับการแจ้งเตือน พรีวิวลิงก์ อัปโหลดไฟล์ และหลายผู้ใช้
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง TheLounge
        readme: |
            # TheLounge

            เว็บ IRC ไคลเอนต์แบบ self-hosted ที่ทันสมัย ตอบสนองรวดเร็ว และรองรับข้ามแพลตฟอร์ม

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

            1. หลังจาก deploy แล้ว เปิด `https://${ZEABUR_WEB_URL}` ในเบราว์เซอร์
            2. สร้างผู้ใช้คนแรกโดยเปิดคอนโซลบริการบน Zeabur แล้วรัน:
               ```
               thelounge add <ชื่อผู้ใช้>
               ```
            3. ตั้งรหัสผ่านตามที่ระบบแจ้ง จากนั้นเข้าสู่ระบบผ่านหน้าเว็บ

            ## คุณสมบัติ

            - รองรับหลายผู้ใช้และข้อความส่วนตัว
            - การแจ้งเตือนแบบ push และการแจ้งเตือนเดสก์ท็อป
            - พรีวิวลิงก์พร้อมรูปย่อ
            - อัปโหลดไฟล์
            - ซิงค์ประวัติการเลื่อนข้ามอุปกรณ์
            - รองรับการยืนยันตัวตน LDAP/HTTP
            - การเชื่อมต่อแบบถาวร (IRC ยังคงออนไลน์เมื่อปิดเบราว์เซอร์)

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

            - ไฟล์ตั้งค่าอยู่ที่ `/var/opt/thelounge/config.js` ภายในคอนเทนเนอร์
            - ข้อมูลผู้ใช้และล็อกเก็บอยู่ใน `/var/opt/thelounge/`
            - เมาท์ persistent volume ที่ `/var/opt/thelounge` เพื่อเก็บข้อมูลหลังรีสตาร์ท

            ## ลิงก์

            - [เอกสารทางการ](https://thelounge.chat/docs)
            - [GitHub Repository](https://github.com/thelounge/thelounge)

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

            MIT — [GitHub](https://github.com/thelounge/thelounge)
    zh-CN:
        description: |
            自托管 Web IRC 客户端。现代化、响应式、跨平台，支持推送通知、链接预览、文件上传及多用户功能。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 域名
              description: 用来访问 TheLounge 的域名
        readme: |
            # TheLounge

            现代化、响应式、跨平台的自托管 Web IRC 客户端。

            ## 首次设置

            1. 部署完成后，在浏览器打开 `https://${ZEABUR_WEB_URL}`。
            2. 在 Zeabur 服务控制台中执行以下命令创建第一位用户：
               ```
               thelounge add <用户名>
               ```
            3. 按提示设置密码后，即可通过网页界面登录。

            ## 功能特色

            - 多用户支持及私人消息
            - 推送通知与桌面提醒
            - 链接预览与缩略图
            - 文件上传
            - 跨设备同步滚动历史
            - 支持 LDAP/HTTP 认证
            - 持久连接（关闭浏览器后 IRC 仍保持在线）

            ## 配置说明

            - 配置文件位于容器内 `/var/opt/thelounge/config.js`。
            - 用户数据与日志存放在 `/var/opt/thelounge/`。
            - 挂载持久卷至 `/var/opt/thelounge` 以在重启后保留数据。

            ## 相关链接

            - [官方文档](https://thelounge.chat/docs)
            - [GitHub 仓库](https://github.com/thelounge/thelounge)

            ## 授权

            MIT — [GitHub](https://github.com/thelounge/thelounge)
    zh-TW:
        description: |
            自架式 Web IRC 客戶端。現代化、響應式、跨平台，支援推播通知、連結預覽、檔案上傳及多使用者功能。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 網域
              description: 用來存取 TheLounge 的網域
        readme: |
            # TheLounge

            現代化、響應式、跨平台的自架式 Web IRC 客戶端。

            ## 首次設定

            1. 部署完成後，在瀏覽器開啟 `https://${ZEABUR_WEB_URL}`。
            2. 在 Zeabur 服務主控台中執行以下指令建立第一位使用者：
               ```
               thelounge add <使用者名稱>
               ```
            3. 依提示設定密碼後，即可透過網頁介面登入。

            ## 功能特色

            - 多使用者支援及私人訊息
            - 推播通知與桌面提醒
            - 連結預覽與縮圖
            - 檔案上傳
            - 跨裝置同步捲動歷史
            - 支援 LDAP/HTTP 驗證
            - 持久連線（關閉瀏覽器後 IRC 仍保持在線）

            ## 設定說明

            - 設定檔位於容器內 `/var/opt/thelounge/config.js`。
            - 使用者資料與日誌存放在 `/var/opt/thelounge/`。
            - 掛載持久磁碟區至 `/var/opt/thelounge` 以在重啟後保留資料。

            ## 相關連結

            - [官方文件](https://thelounge.chat/docs)
            - [GitHub 儲存庫](https://github.com/thelounge/thelounge)

            ## 授權

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