# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: SearXNG
spec:
    description: Privacy-respecting, hackable metasearch engine.
    icon: https://raw.githubusercontent.com/searxng/searxng/master/client/simple/src/brand/searxng-wordmark.svg
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: Domain of your SearXNG.
    tags:
        - search
        - tool
    readme: |
        # SearXNG
        SearXNG is a free internet metasearch engine which aggregates results from up to 249 search services. Users are neither tracked nor profiled. Additionally, SearXNG can be used over Tor for online anonymity.

        If you want to use it as an LLM or workflow search engine, please add a line - json under - html in the formats section of /etc/searxng/settings.yml
    services:
        - name: SearXNG
          icon: https://raw.githubusercontent.com/searxng/searxng/master/client/simple/src/brand/searxng-wordmark.svg
          template: PREBUILT_V2
          spec:
            id: searxng
            source:
                image: searxng/searxng:latest
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            volumes:
                - id: searxng
                  dir: /etc/searxng
            env:
                SEARXNG_BASE_URL:
                    default: https://${ZEABUR_WEB_DOMAIN}
                SEARXNG_SECRET:
                    default: ${PASSWORD}
localization:
    zh-CN:
        description: 尊重隐私、可自定义的元搜索引擎
        readme: |
            # SearXNG
            SearXNG 是一个免费的互联网元搜索引擎，可以聚合多达 249 个搜索服务的结果。用户不会被追踪或建立档案。此外，SearXNG 还可以通过 Tor 使用，以实现在线匿名

            如需作为 LLM 或工作流搜索引擎使用，请于 /etc/searxng/settings.yml 的 formats 处，- html 下面添加一行 - json
    zh-TW:
        description: 尊重隱私、可自訂的元搜尋引擎
        readme: |-
            # SearXNG
            SearXNG 是一個免費的網際網路元搜尋引擎，能夠聚合多達 249 個搜尋服務的結果。用戶不會被追蹤或建立個人檔案。此外，SearXNG 也可以透過 Tor 使用，以實現線上匿名

            如需作為 LLM 或工作流程搜尋引擎使用，請於 /etc/searxng/settings.yml 的 formats 處，- html 底下新增一行 - json
