# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: GO Feature Flag
spec:
    description: |
        GO Feature Flag is a lightweight, self-hosted feature flag platform. Manage feature rollouts with file-based configuration, percentage-based targeting, A/B testing, and a built-in evaluation API — no external database required.
    coverImage: https://avatars.githubusercontent.com/u/99183428
    icon: https://avatars.githubusercontent.com/u/99183428
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access GO Feature Flag
    tags:
        - Tool
        - Developer Tools
    readme: |
        # GO Feature Flag

        A lightweight, open-source feature flag solution that keeps things simple. Configuration lives in a file (YAML, JSON, or TOML) stored locally or fetched from S3, GitHub, HTTP endpoints, and more. No database needed — just define your flags and start evaluating.

        ## What You Can Do After Deployment

        1. **Visit your domain** — the relay proxy starts and exposes the flag evaluation API
        2. **Create a flag configuration file** — define flags in YAML/JSON/TOML format and mount it or point to a remote source
        3. **Evaluate flags** — call the REST API from any application to check flag values for users
        4. **Set up targeting rules** — use percentage rollouts, user attributes, and segmentation to control who sees what
        5. **Monitor** — the built-in `/health` and `/info` endpoints help with observability

        ## Key Features

        - File-based configuration — flags defined in YAML, JSON, or TOML
        - Multiple retriever backends — local file, S3, GitHub, GitLab, HTTP, Google Cloud Storage, Kubernetes ConfigMap
        - Percentage-based rollouts and progressive delivery
        - User targeting with custom attributes and rules
        - OpenFeature compatible — works with any OpenFeature SDK
        - Built-in relay proxy with REST API
        - Webhook and exporter support for tracking flag changes
        - No external database required

        ## Configuration

        - `RETRIEVER_KIND` — where to fetch flag config from (e.g., `file`, `http`, `s3`, `github`)
        - `RETRIEVER_PATH` — path or URL to the flag configuration file

        Mount a flag configuration file at `/goff/flags.yaml` or configure a remote retriever via environment variables.

        ## License

        MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag) | [Website](https://gofeatureflag.org)
    services:
        - name: go-feature-flag
          icon: https://avatars.githubusercontent.com/u/99183428
          template: PREBUILT_V2
          spec:
            source:
                image: gofeatureflag/go-feature-flag:v1.52.0-bookworm
            ports:
                - id: web
                  port: 1031
                  type: HTTP
            volumes:
                - id: goff
                  dir: /goff
            env:
                RETRIEVER_KIND:
                    default: file
                RETRIEVER_PATH:
                    default: /goff/flags.yaml
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /health
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            GO Feature Flag es una plataforma de feature flags ligera y autoalojada. Configuración basada en archivos, lanzamientos por porcentaje, pruebas A/B y API de evaluación integrada — sin base de datos externa.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a GO Feature Flag
        readme: |
            # GO Feature Flag

            Solución de feature flags ligera y de código abierto. Sin base de datos externa.

            ## Qué puedes hacer después del despliegue

            1. **Visita tu dominio** — el relay proxy inicia y expone la API de evaluación
            2. **Crea un archivo de configuración** — define flags en YAML/JSON/TOML
            3. **Evalúa flags** — llama a la API REST desde cualquier aplicación
            4. **Configura reglas** — lanzamientos por porcentaje y segmentación

            ## Características

            - Configuración basada en archivos
            - Múltiples fuentes (local, S3, GitHub, HTTP)
            - Compatible con OpenFeature
            - Sin base de datos externa

            ## Licencia

            MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag)
    id-ID:
        description: |
            GO Feature Flag adalah platform feature flag self-hosted yang ringan. Konfigurasi berbasis file, rollout persentase, A/B testing, dan API evaluasi bawaan — tanpa database eksternal.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses GO Feature Flag
        readme: |
            # GO Feature Flag

            Solusi feature flag open-source yang ringan. Tanpa database eksternal.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — relay proxy memulai dan menyediakan API evaluasi flag
            2. **Buat file konfigurasi** — definisikan flag dalam YAML/JSON/TOML
            3. **Evaluasi flag** — panggil REST API dari aplikasi
            4. **Atur aturan targeting** — rollout persentase dan segmentasi pengguna

            ## Fitur

            - Konfigurasi berbasis file
            - Berbagai sumber data (lokal, S3, GitHub, HTTP)
            - Kompatibel OpenFeature
            - Tanpa database eksternal

            ## Lisensi

            MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag)
    ja-JP:
        description: |
            GO Feature Flagは軽量なセルフホスト型フィーチャーフラグプラットフォーム。ファイルベースの設定、パーセンテージロールアウト、A/Bテスト対応。外部DB不要。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: GO Feature Flagにアクセスするためのドメイン
        readme: |
            # GO Feature Flag

            軽量なオープンソースフィーチャーフラグソリューション。YAML/JSON/TOMLで設定、DB不要。

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

            1. **ドメインにアクセス** — relay proxyが起動しフラグ評価APIを提供
            2. **フラグ設定ファイルを作成** — YAML/JSON/TOMLでフラグを定義
            3. **フラグを評価** — REST APIでフラグ値を取得
            4. **ターゲティングルール設定** — パーセンテージロールアウト、ユーザー属性

            ## 主な機能

            - ファイルベースの設定
            - 複数のリトリーバー（ローカル、S3、GitHub、HTTP等）
            - OpenFeature互換
            - 外部DB不要

            ## ライセンス

            MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag)
    ko-KR:
        description: |
            GO Feature Flag는 경량 셀프호스팅 피처 플래그 플랫폼입니다. 파일 기반 설정, 비율 기반 롤아웃, A/B 테스트 및 내장 평가 API — 외부 DB 불필요.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: GO Feature Flag에 접속할 도메인
        readme: |
            # GO Feature Flag

            경량 오픈소스 피처 플래그 솔루션. 외부 DB 불필요.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — relay proxy 시작, 플래그 평가 API 제공
            2. **플래그 설정 파일 생성** — YAML/JSON/TOML로 플래그 정의
            3. **플래그 평가** — REST API로 플래그 값 조회
            4. **타겟팅 규칙 설정** — 비율 롤아웃, 사용자 속성 분류

            ## 주요 기능

            - 파일 기반 설정
            - 다양한 데이터 소스 (로컬, S3, GitHub, HTTP)
            - OpenFeature 호환
            - 외부 DB 불필요

            ## 라이선스

            MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag)
    th-TH:
        description: |
            GO Feature Flag คือแพลตฟอร์ม feature flag แบบ self-hosted ที่เบา กำหนดค่าจากไฟล์ รองรับ rollout แบบเปอร์เซ็นต์ A/B testing และ API ประเมินค่าในตัว — ไม่ต้องใช้ฐานข้อมูลภายนอก
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง GO Feature Flag
        readme: |
            # GO Feature Flag

            โซลูชัน feature flag โอเพนซอร์สที่เบา ไม่ต้องใช้ฐานข้อมูลภายนอก

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

            1. **เข้าสู่โดเมน** — relay proxy เริ่มทำงานและเปิด API ประเมิน flag
            2. **สร้างไฟล์กำหนดค่า** — กำหนด flag ใน YAML/JSON/TOML
            3. **ประเมิน flag** — เรียก REST API จากแอปพลิเคชัน
            4. **ตั้งกฎ targeting** — rollout แบบเปอร์เซ็นต์และแบ่งกลุ่มผู้ใช้

            ## ฟีเจอร์หลัก

            - กำหนดค่าจากไฟล์
            - หลายแหล่งข้อมูล (โลคอล, S3, GitHub, HTTP)
            - รองรับ OpenFeature
            - ไม่ต้องใช้ฐานข้อมูลภายนอก

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

            MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag)
    zh-CN:
        description: |
            GO Feature Flag 是轻量级的自托管功能标志平台。通过文件配置管理功能发布，支持百分比分流、A/B 测试，无需外部数据库。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 GO Feature Flag 的域名
        readme: |
            # GO Feature Flag

            轻量级开源功能标志方案。配置以 YAML/JSON/TOML 格式定义，无需数据库。

            ## 部署后可以做什么

            1. **打开域名** — relay proxy 启动并提供标志评估 API
            2. **创建标志配置文件** — 以 YAML/JSON/TOML 定义标志
            3. **评估标志** — 从应用调用 REST API 查询标志值
            4. **配置分流规则** — 百分比分流、用户属性分群
            5. **监控** — 内置 `/health` 和 `/info` 端点

            ## 主要功能

            - 文件式配置
            - 多种数据源（本地、S3、GitHub、HTTP 等）
            - 百分比分流和渐进式发布
            - OpenFeature 兼容
            - 无需外部数据库

            ## 授权

            MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag)
    zh-TW:
        description: |
            GO Feature Flag 是輕量級的自架功能旗標平台。透過檔案設定管理功能發布，支援百分比分流、A/B 測試和內建評估 API，無需外部資料庫。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 GO Feature Flag 的網域
        readme: |
            # GO Feature Flag

            輕量級開源功能旗標方案。設定檔以 YAML/JSON/TOML 格式定義，可存放於本地或從 S3、GitHub、HTTP 等遠端擷取，無需資料庫。

            ## 部署後可以做什麼

            1. **開啟網域** — relay proxy 啟動並提供旗標評估 API
            2. **建立旗標設定檔** — 以 YAML/JSON/TOML 定義旗標，掛載或指向遠端來源
            3. **評估旗標** — 從任何應用程式呼叫 REST API 查詢旗標值
            4. **設定分流規則** — 使用百分比分流、使用者屬性和分群控制功能展示對象
            5. **監控** — 內建 `/health` 和 `/info` 端點

            ## 主要功能

            - 檔案式設定（YAML、JSON、TOML）
            - 多種擷取後端（本地檔案、S3、GitHub、HTTP 等）
            - 百分比分流和漸進式發布
            - OpenFeature 相容
            - 內建 REST API relay proxy
            - 無需外部資料庫

            ## 授權

            MIT — [GitHub](https://github.com/thomaspoignant/go-feature-flag)
