# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: WeTTY
spec:
    description: |
        WeTTY (Web + TTY) is a terminal emulator that runs in your browser over HTTP/HTTPS. It provides SSH access through a web interface, making it easy to connect to remote servers from any device with a browser.
    coverImage: https://raw.githubusercontent.com/butlerx/wetty/main/docs/terminal.png
    icon: https://avatars.githubusercontent.com/u/61594003
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access WeTTY
    tags:
        - Tool
        - Developer Tools
    readme: |
        # WeTTY

        A terminal emulator in your browser over HTTP/HTTPS. Access SSH sessions through a clean web interface from any device.

        ## What You Can Do After Deployment

        1. **Visit your domain** — open `https://YOUR_DOMAIN/wetty` to access the terminal
        2. **Connect to SSH hosts** — configure `SSHHOST` and `SSHPORT` environment variables to connect to a remote SSH server
        3. **Set default user** — use `SSHUSER` to pre-fill the login username
        4. **Enable SSH key auth** — mount an SSH key and set `SSHAUTH` to `publickey`
        5. **Customize the base path** — change `BASE` to serve WeTTY under a different URL path
        6. **Use behind a reverse proxy** — WeTTY works seamlessly behind nginx, Apache, or Caddy

        ## Key Features

        - Browser-based terminal emulator
        - SSH client over HTTP/HTTPS
        - xterm.js for full terminal compatibility
        - Custom base path support
        - SSH key authentication support
        - Works behind reverse proxies
        - Lightweight and fast

        ## License

        MIT — [GitHub](https://github.com/butlerx/wetty)
    services:
        - name: wetty
          icon: https://avatars.githubusercontent.com/u/61594003
          template: PREBUILT_V2
          spec:
            source:
                image: wettyoss/wetty:2.5.0
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            env:
                BASE:
                    default: /wetty
                SSHHOST:
                    default: localhost
                SSHPORT:
                    default: "22"
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            WeTTY (Web + TTY) es un emulador de terminal que funciona en el navegador a traves de HTTP/HTTPS. Proporciona acceso SSH mediante una interfaz web, facilitando la conexion a servidores remotos desde cualquier dispositivo con navegador.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a WeTTY
        readme: |
            # WeTTY

            Emulador de terminal en el navegador a traves de HTTP/HTTPS. Accede a sesiones SSH desde cualquier dispositivo.

            ## Que puedes hacer despues del despliegue

            1. **Visita tu dominio** — abre `https://TU_DOMINIO/wetty` para acceder al terminal
            2. **Conecta a hosts SSH** — configura `SSHHOST` y `SSHPORT`
            3. **Establece usuario por defecto** — usa `SSHUSER` para prellenar el nombre de usuario
            4. **Habilita autenticacion por clave SSH** — monta una clave SSH y configura `SSHAUTH`

            ## Licencia

            MIT — [GitHub](https://github.com/butlerx/wetty)
    id-ID:
        description: |
            WeTTY (Web + TTY) adalah emulator terminal yang berjalan di browser melalui HTTP/HTTPS. Menyediakan akses SSH melalui antarmuka web, memudahkan koneksi ke server remote dari perangkat apa pun yang memiliki browser.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses WeTTY
        readme: |
            # WeTTY

            Emulator terminal di browser melalui HTTP/HTTPS. Akses sesi SSH dari perangkat apa pun.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — buka `https://DOMAIN_ANDA/wetty` untuk mengakses terminal
            2. **Hubungkan ke host SSH** — konfigurasi `SSHHOST` dan `SSHPORT`
            3. **Atur pengguna default** — gunakan `SSHUSER` untuk mengisi username otomatis
            4. **Aktifkan autentikasi kunci SSH** — mount kunci SSH dan atur `SSHAUTH`

            ## Lisensi

            MIT — [GitHub](https://github.com/butlerx/wetty)
    ja-JP:
        description: |
            WeTTY（Web + TTY）はブラウザ上で HTTP/HTTPS 経由で動作するターミナルエミュレーターです。Web インターフェースから SSH アクセスを提供し、ブラウザがあればどのデバイスからでもリモートサーバーに接続できます。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: WeTTY にアクセスするためのドメイン
        readme: |
            # WeTTY

            ブラウザ上で HTTP/HTTPS 経由で動作するターミナルエミュレーター。どのデバイスからでも SSH セッションにアクセス。

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

            1. **ドメインにアクセス** — `https://ドメイン/wetty` でターミナルを開く
            2. **SSH ホストに接続** — `SSHHOST` と `SSHPORT` でリモートサーバーを設定
            3. **デフォルトユーザーを設定** — `SSHUSER` でログインユーザー名を設定
            4. **SSH 鍵認証を有効化** — SSH 鍵をマウントして `SSHAUTH` を `publickey` に設定

            ## ライセンス

            MIT — [GitHub](https://github.com/butlerx/wetty)
    ko-KR:
        description: |
            WeTTY(Web + TTY)는 HTTP/HTTPS를 통해 브라우저에서 실행되는 터미널 에뮬레이터입니다. 웹 인터페이스를 통해 SSH 접속을 제공하여 브라우저가 있는 모든 장치에서 원격 서버에 연결할 수 있습니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: WeTTY에 접속할 도메인
        readme: |
            # WeTTY

            HTTP/HTTPS를 통해 브라우저에서 실행되는 터미널 에뮬레이터. 모든 장치에서 SSH 세션에 접속.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — `https://도메인/wetty`에서 터미널 열기
            2. **SSH 호스트 연결** — `SSHHOST`와 `SSHPORT`로 원격 서버 설정
            3. **기본 사용자 설정** — `SSHUSER`로 로그인 사용자명 설정
            4. **SSH 키 인증 활성화** — SSH 키 마운트 후 `SSHAUTH`를 `publickey`로 설정

            ## 라이선스

            MIT — [GitHub](https://github.com/butlerx/wetty)
    th-TH:
        description: |
            WeTTY (Web + TTY) เป็นโปรแกรมจำลองเทอร์มินัลที่ทำงานในเบราว์เซอร์ผ่าน HTTP/HTTPS ให้การเข้าถึง SSH ผ่านหน้าเว็บ ทำให้เชื่อมต่อกับเซิร์ฟเวอร์ระยะไกลจากอุปกรณ์ใดก็ได้ที่มีเบราว์เซอร์
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง WeTTY
        readme: |
            # WeTTY

            โปรแกรมจำลองเทอร์มินัลในเบราว์เซอร์ผ่าน HTTP/HTTPS เข้าถึงเซสชัน SSH จากอุปกรณ์ใดก็ได้

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

            1. **เข้าสู่โดเมน** — เปิด `https://โดเมนของคุณ/wetty` เพื่อเข้าถึงเทอร์มินัล
            2. **เชื่อมต่อกับ SSH host** — ตั้งค่า `SSHHOST` และ `SSHPORT`
            3. **ตั้งค่าผู้ใช้เริ่มต้น** — ใช้ `SSHUSER` เพื่อกรอกชื่อผู้ใช้อัตโนมัติ
            4. **เปิดใช้การยืนยันตัวตนด้วยคีย์ SSH** — mount คีย์ SSH และตั้งค่า `SSHAUTH`

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

            MIT — [GitHub](https://github.com/butlerx/wetty)
    zh-CN:
        description: |
            WeTTY（Web + TTY）是在浏览器中通过 HTTP/HTTPS 运行的终端模拟器。提供通过 Web 界面访问 SSH 的功能，让您从任何有浏览器的设备轻松连接远程服务器。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 WeTTY 的域名
        readme: |
            # WeTTY

            在浏览器中通过 HTTP/HTTPS 运行的终端模拟器。从任何设备通过简洁的 Web 界面访问 SSH 连接。

            ## 部署后可以做什么

            1. **打开域名** — 前往 `https://你的域名/wetty` 访问终端
            2. **连接 SSH 主机** — 设置 `SSHHOST` 和 `SSHPORT` 环境变量以连接远程 SSH 服务器
            3. **设置默认用户** — 使用 `SSHUSER` 预填登录用户名
            4. **启用 SSH 密钥认证** — 挂载 SSH 密钥并设置 `SSHAUTH` 为 `publickey`
            5. **自定义路径** — 修改 `BASE` 更改 WeTTY 的 URL 路径

            ## 许可证

            MIT — [GitHub](https://github.com/butlerx/wetty)
    zh-TW:
        description: |
            WeTTY（Web + TTY）是在瀏覽器中透過 HTTP/HTTPS 執行的終端模擬器。提供透過網頁介面存取 SSH 的功能，讓您從任何有瀏覽器的裝置輕鬆連接遠端伺服器。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 WeTTY 的網域
        readme: |
            # WeTTY

            在瀏覽器中透過 HTTP/HTTPS 執行的終端模擬器。從任何裝置透過簡潔的網頁介面存取 SSH 連線。

            ## 部署後可以做什麼

            1. **開啟網域** — 前往 `https://你的網域/wetty` 存取終端
            2. **連接 SSH 主機** — 設定 `SSHHOST` 和 `SSHPORT` 環境變數以連接遠端 SSH 伺服器
            3. **設定預設使用者** — 使用 `SSHUSER` 預填登入帳號
            4. **啟用 SSH 金鑰驗證** — 掛載 SSH 金鑰並設定 `SSHAUTH` 為 `publickey`
            5. **自訂路徑** — 修改 `BASE` 變更 WeTTY 的 URL 路徑

            ## 主要功能

            - 瀏覽器終端模擬器
            - 透過 HTTP/HTTPS 的 SSH 客戶端
            - xterm.js 完整終端相容性
            - 自訂路徑支援
            - SSH 金鑰驗證支援

            ## 授權

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