# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: KryptoGo API Server
spec:
    description: Proxy server for securely forwarding requests to KryptoGo APIs
    coverImage: https://raw.githubusercontent.com/zeabur/kryptogo-api-server/refs/heads/main/public/assets/preview1.png
    icon: https://payment.kryptogo.com/favicon.ico
    variables:
        - key: API_KEY
          type: STRING
          name: KryptoGo API Key
          description: Your API key for calling KryptoGo REST API.
        - key: CLIENT_ID
          type: STRING
          name: KryptoGo Client ID
          description: Your application’s client ID.
    tags:
        - Payment
        - API
        - KryptoGo
    readme: |-
        # KryptoGo API Server

        This server acts as a secure proxy for communicating with KryptoGo's API from your frontend.
        It injects required headers like API key and client ID into all requests to avoid exposing credentials on the client side.

        Provide your KryptoGo API key in `API_KEY`, and your application’s client ID in `CLIENT_ID`.
    services:
        - name: KryptoGO API Server
          icon: https://payment.kryptogo.com/favicon.ico
          template: GIT
          spec:
            id: kryptogo-api-server
            source:
                source: GITHUB
                repo: 962389645
                branch: main
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            env:
                API_KEY:
                    default: ${API_KEY}
                CLIENT_ID:
                    default: ${CLIENT_ID}
          domainKey: PUBLIC_DOMAIN
localization:
    zh-CN:
        description: 一个安全的代理服务器，用于将前端的请求安全地转发到 KryptoGo API。
        readme: |-
            # KryptoGo API Server（代理服务器）

            此服务器作为前端与 KryptoGo API 之间的安全代理，用于安全地转发 API 请求，避免在前端暴露凭证。

            所有请求都会自动添加所需的 API Key 和 Client ID 环境变量，帮助你更安全地与 KryptoGo 金流 API 通讯。

            请在环境变量中提供：
            - `API_KEY`：你的 KryptoGo API 密钥
            - `CLIENT_ID`：你的应用程序 Client ID
    zh-TW:
        description: 一個安全的代理伺服器，可將前端的請求安全轉發至 KryptoGo API。
        readme: |-
            # KryptoGo API Server（代理伺服器）

            此伺服器作為前端與 KryptoGo API 之間的安全代理，用於安全地轉發 API 請求，避免在前端暴露憑證。

            所有請求都會自動加入必要的 API Key 和 Client ID 環境變數，協助你更安全地與 KryptoGo 的金流 API 溝通。

            請在環境變數中提供：
            - `API_KEY`：你的 KryptoGo API 金鑰
            - `CLIENT_ID`：你的應用程式 Client ID
