# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Tinyproxy
spec:
    description: |
        A lightweight HTTP/HTTPS proxy daemon built on Alpine Linux. Supports access control, basic authentication, and custom configuration.
    icon: https://avatars.githubusercontent.com/u/35518850
    tags:
        - Tool
    readme: |
        # Tinyproxy

        A light-weight HTTP/HTTPS proxy daemon for POSIX operating systems, designed for small network setups where a full-featured proxy would be overkill.

        ## Getting Started

        1. Click "Deploy" to deploy Tinyproxy to your Zeabur project.
        2. Port forwarding is automatically enabled. Go to the **Networking** tab to find the forwarded hostname and port.
        3. Find the auto-generated password in the **Variables** tab (AUTH_PASSWORD).
        4. Configure your HTTP proxy client:

        ```bash
        curl -x http://admin:YOUR_PASSWORD@FORWARDED_HOST:FORWARDED_PORT https://ifconfig.co
        ```

        ## Authentication

        Basic authentication is enabled by default:
        - **Username**: admin (configurable via AUTH_USER)
        - **Password**: auto-generated (see AUTH_PASSWORD in Variables tab)

        ## Configuration

        | Variable | Default | Description |
        |----------|---------|-------------|
        | PORT | 8888 | Listening port |
        | ALLOWED_NETWORKS | (empty = allow all) | Space-separated allowed IP ranges |
        | AUTH_USER | admin | Basic auth username |
        | AUTH_PASSWORD | (auto-generated) | Basic auth password |
        | MAX_CLIENTS | 100 | Maximum simultaneous connections |
        | TIMEOUT | 900 | Idle connection timeout in seconds |
        | LOG_LEVEL | Notice | Log level (Critical, Error, Warning, Notice, Connect, Info) |
        | DISABLE_VIA_HEADER | yes | Disable the Via header in responses |

        ## Important Notes

        - This is an HTTP proxy (not SOCKS5). Use it with tools that support HTTP/HTTPS proxy.
        - Port forwarding is enabled automatically — no manual setup needed.
        - Basic auth is enabled by default to prevent unauthorized access.

        ## License

        - Tinyproxy is licensed under [GPL-2.0](https://github.com/tinyproxy/tinyproxy).
        - Docker image by [kalaksi](https://github.com/kalaksi/docker-tinyproxy) under MIT license.

        ## Links

        - [Tinyproxy GitHub](https://github.com/tinyproxy/tinyproxy)
        - [Docker Image](https://github.com/kalaksi/docker-tinyproxy)
    services:
        - name: tinyproxy
          icon: https://avatars.githubusercontent.com/u/35518850
          template: PREBUILT_V2
          spec:
            id: tinyproxy
            source:
                image: kalaksi/tinyproxy:1.7
            ports:
                - id: proxy
                  port: 8888
                  type: TCP
            env:
                ALLOWED_NETWORKS:
                    default: ""
                AUTH_PASSWORD:
                    default: ${PASSWORD}
                AUTH_USER:
                    default: admin
                DISABLE_VIA_HEADER:
                    default: "yes"
                LOG_LEVEL:
                    default: Notice
                MAX_CLIENTS:
                    default: "100"
                PORT:
                    default: "8888"
                STAT_HOST:
                    default: tinyproxy.stats
                TIMEOUT:
                    default: "900"
            portForwarding:
                enabled: true
localization:
    es-ES:
        description: |
            Proxy HTTP/HTTPS ligero basado en Alpine Linux. Soporta control de acceso, autenticacion basica y configuracion personalizada.
        readme: |
            # Tinyproxy

            Un proxy HTTP/HTTPS ligero para sistemas operativos POSIX, disenado para entornos de red pequenos.

            ## Primeros Pasos

            1. Haz clic en "Deploy" para desplegar Tinyproxy en tu proyecto Zeabur.
            2. Port Forwarding se habilita automaticamente. Ve a la pestana **Networking** para ver el hostname y puerto reenviados.
            3. Encuentra la contrasena generada automaticamente en la pestana **Variables** (AUTH_PASSWORD).
            4. Configura tu cliente proxy HTTP:

            ```bash
            curl -x http://admin:TU_CONTRASENA@HOST_REENVIADO:PUERTO_REENVIADO https://ifconfig.co
            ```

            ## Autenticacion

            La autenticacion basica esta habilitada por defecto:
            - **Usuario**: admin (configurable via AUTH_USER)
            - **Contrasena**: generada automaticamente (ver AUTH_PASSWORD en la pestana Variables)

            ## Configuracion

            | Variable | Predeterminado | Descripcion |
            |----------|---------------|-------------|
            | PORT | 8888 | Puerto de escucha |
            | ALLOWED_NETWORKS | (vacio = permitir todo) | Rangos IP permitidos separados por espacios |
            | AUTH_USER | admin | Usuario de autenticacion basica |
            | AUTH_PASSWORD | (generada automaticamente) | Contrasena de autenticacion basica |
            | MAX_CLIENTS | 100 | Conexiones simultaneas maximas |
            | TIMEOUT | 900 | Tiempo de espera de conexion inactiva (segundos) |
            | LOG_LEVEL | Notice | Nivel de registro |
            | DISABLE_VIA_HEADER | yes | Deshabilitar cabecera Via en respuestas |

            ## Notas Importantes

            - Es un proxy HTTP (no SOCKS5). Usalo con herramientas que soporten proxy HTTP/HTTPS.
            - Port Forwarding se habilita automaticamente — no requiere configuracion manual.
            - La autenticacion basica esta habilitada por defecto para prevenir acceso no autorizado.

            ## Licencia

            - Tinyproxy esta bajo licencia [GPL-2.0](https://github.com/tinyproxy/tinyproxy).
            - Imagen Docker por [kalaksi](https://github.com/kalaksi/docker-tinyproxy) bajo licencia MIT.
    id-ID:
        description: |
            Proxy HTTP/HTTPS ringan berbasis Alpine Linux. Mendukung kontrol akses, autentikasi dasar, dan konfigurasi kustom.
        readme: |
            # Tinyproxy

            Proxy HTTP/HTTPS ringan untuk sistem operasi POSIX, dirancang untuk lingkungan jaringan kecil.

            ## Memulai

            1. Klik "Deploy" untuk men-deploy Tinyproxy ke proyek Zeabur Anda.
            2. Port Forwarding diaktifkan secara otomatis. Buka tab **Networking** untuk melihat hostname dan port yang diteruskan.
            3. Temukan password yang dibuat otomatis di tab **Variables** (AUTH_PASSWORD).
            4. Konfigurasikan klien proxy HTTP Anda:

            ```bash
            curl -x http://admin:PASSWORD_ANDA@HOST_FORWARD:PORT_FORWARD https://ifconfig.co
            ```

            ## Autentikasi

            Autentikasi dasar diaktifkan secara default:
            - **Username**: admin (dapat diubah via AUTH_USER)
            - **Password**: dibuat otomatis (lihat AUTH_PASSWORD di tab Variables)

            ## Konfigurasi

            | Variabel | Default | Deskripsi |
            |----------|---------|-----------|
            | PORT | 8888 | Port listening |
            | ALLOWED_NETWORKS | (kosong = izinkan semua) | Rentang IP yang diizinkan dipisahkan spasi |
            | AUTH_USER | admin | Username autentikasi dasar |
            | AUTH_PASSWORD | (dibuat otomatis) | Password autentikasi dasar |
            | MAX_CLIENTS | 100 | Koneksi simultan maksimum |
            | TIMEOUT | 900 | Timeout koneksi idle (detik) |
            | LOG_LEVEL | Notice | Level log |
            | DISABLE_VIA_HEADER | yes | Nonaktifkan header Via di respons |

            ## Catatan Penting

            - Ini adalah proxy HTTP (bukan SOCKS5). Gunakan dengan alat yang mendukung proxy HTTP/HTTPS.
            - Port Forwarding diaktifkan secara otomatis — tidak perlu pengaturan manual.
            - Autentikasi dasar diaktifkan secara default untuk mencegah akses tidak sah.

            ## Lisensi

            - Tinyproxy dilisensikan di bawah [GPL-2.0](https://github.com/tinyproxy/tinyproxy).
            - Image Docker oleh [kalaksi](https://github.com/kalaksi/docker-tinyproxy) di bawah lisensi MIT.
    ja-JP:
        description: |
            Alpine Linux ベースの軽量 HTTP/HTTPS プロキシデーモン。アクセス制御、基本認証、カスタム設定をサポート。
        readme: |
            # Tinyproxy

            POSIX オペレーティングシステム向けの軽量 HTTP/HTTPS プロキシデーモン。小規模ネットワーク環境向けに設計されています。

            ## はじめに

            1. 「デプロイ」をクリックして Zeabur プロジェクトに Tinyproxy をデプロイします。
            2. Port Forwarding は自動的に有効化されます。**Networking** タブで転送先のホスト名とポートを確認します。
            3. **Variables** タブで自動生成されたパスワード（AUTH_PASSWORD）を確認します。
            4. HTTP プロキシクライアントを設定します：

            ```bash
            curl -x http://admin:パスワード@転送ホスト:転送ポート https://ifconfig.co
            ```

            ## 認証

            基本認証はデフォルトで有効です：
            - **ユーザー名**：admin（AUTH_USER で変更可能）
            - **パスワード**：自動生成（Variables タブの AUTH_PASSWORD を参照）

            ## 設定

            | 変数 | デフォルト | 説明 |
            |------|-----------|------|
            | PORT | 8888 | リッスンポート |
            | ALLOWED_NETWORKS | （空 = すべて許可） | スペース区切りの許可 IP 範囲 |
            | AUTH_USER | admin | 基本認証ユーザー名 |
            | AUTH_PASSWORD | （自動生成） | 基本認証パスワード |
            | MAX_CLIENTS | 100 | 最大同時接続数 |
            | TIMEOUT | 900 | アイドル接続タイムアウト（秒） |
            | LOG_LEVEL | Notice | ログレベル |
            | DISABLE_VIA_HEADER | yes | レスポンスの Via ヘッダーを無効化 |

            ## 重要事項

            - HTTP プロキシです（SOCKS5 ではありません）。HTTP/HTTPS プロキシ対応のツールで使用してください。
            - Port Forwarding は自動的に有効化されます — 手動設定は不要です。
            - 不正アクセス防止のため、基本認証がデフォルトで有効です。

            ## ライセンス

            - Tinyproxy は [GPL-2.0](https://github.com/tinyproxy/tinyproxy) ライセンスです。
            - Docker イメージは [kalaksi](https://github.com/kalaksi/docker-tinyproxy) による MIT ライセンスです。
    zh-CN:
        description: |
            基于 Alpine Linux 的轻量级 HTTP/HTTPS 代理服务器。支持访问控制、基本认证和自定义配置。
        readme: |
            # Tinyproxy

            适用于 POSIX 操作系统的轻量级 HTTP/HTTPS 代理服务器，专为小型网络环境设计。

            ## 开始使用

            1. 点击「部署」将 Tinyproxy 部署到你的 Zeabur 项目。
            2. Port Forwarding 会自动启用，前往 **Networking** 页签查看转发的主机名和端口。
            3. 在 **Variables** 页签找到自动生成的密码（AUTH_PASSWORD）。
            4. 配置你的 HTTP 代理客户端：

            ```bash
            curl -x http://admin:你的密码@转发主机:转发端口 https://ifconfig.co
            ```

            ## 认证

            默认已启用基本认证：
            - **用户名**：admin（可通过 AUTH_USER 修改）
            - **密码**：自动生成（见 Variables 页签的 AUTH_PASSWORD）

            ## 配置

            | 变量 | 默认值 | 说明 |
            |------|--------|------|
            | PORT | 8888 | 监听端口 |
            | ALLOWED_NETWORKS | （空 = 允许全部） | 以空格分隔的允许 IP 范围 |
            | AUTH_USER | admin | 基本认证用户名 |
            | AUTH_PASSWORD | （自动生成） | 基本认证密码 |
            | MAX_CLIENTS | 100 | 最大同时连接数 |
            | TIMEOUT | 900 | 空闲连接超时（秒） |
            | LOG_LEVEL | Notice | 日志级别 |
            | DISABLE_VIA_HEADER | yes | 禁用响应中的 Via 头 |

            ## 重要事项

            - 这是 HTTP 代理（非 SOCKS5），请使用支持 HTTP/HTTPS 代理的工具。
            - Port Forwarding 会自动启用，无需手动设置。
            - 默认已启用基本认证，防止未授权访问。

            ## 许可

            - Tinyproxy 采用 [GPL-2.0](https://github.com/tinyproxy/tinyproxy) 许可。
            - Docker 镜像由 [kalaksi](https://github.com/kalaksi/docker-tinyproxy) 提供，采用 MIT 许可。
    zh-TW:
        description: |
            基於 Alpine Linux 的輕量級 HTTP/HTTPS 代理伺服器。支援存取控制、基本驗證和自訂設定。
        readme: |
            # Tinyproxy

            適用於 POSIX 作業系統的輕量級 HTTP/HTTPS 代理伺服器，專為小型網路環境設計。

            ## 開始使用

            1. 點擊「部署」將 Tinyproxy 部署到你的 Zeabur 專案。
            2. Port Forwarding 會自動啟用，前往 **Networking** 頁籤查看轉發的主機名稱和端口。
            3. 在 **Variables** 頁籤找到自動生成的密碼（AUTH_PASSWORD）。
            4. 設定你的 HTTP 代理用戶端：

            ```bash
            curl -x http://admin:你的密碼@轉發主機:轉發端口 https://ifconfig.co
            ```

            ## 驗證

            預設已啟用基本驗證：
            - **帳號**：admin（可透過 AUTH_USER 修改）
            - **密碼**：自動生成（見 Variables 頁籤的 AUTH_PASSWORD）

            ## 設定

            | 變數 | 預設值 | 說明 |
            |------|--------|------|
            | PORT | 8888 | 監聽端口 |
            | ALLOWED_NETWORKS | （空 = 允許全部） | 以空格分隔的允許 IP 範圍 |
            | AUTH_USER | admin | 基本驗證帳號 |
            | AUTH_PASSWORD | （自動生成） | 基本驗證密碼 |
            | MAX_CLIENTS | 100 | 最大同時連線數 |
            | TIMEOUT | 900 | 閒置連線逾時（秒） |
            | LOG_LEVEL | Notice | 日誌等級 |
            | DISABLE_VIA_HEADER | yes | 停用回應中的 Via 標頭 |

            ## 重要事項

            - 這是 HTTP 代理（非 SOCKS5），請使用支援 HTTP/HTTPS 代理的工具。
            - Port Forwarding 會自動啟用，無需手動設定。
            - 預設已啟用基本驗證，防止未授權存取。

            ## 授權

            - Tinyproxy 採用 [GPL-2.0](https://github.com/tinyproxy/tinyproxy) 授權。
            - Docker 映像由 [kalaksi](https://github.com/kalaksi/docker-tinyproxy) 提供，採用 MIT 授權。
