# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Wechat2RSS
spec:
    description: 自建微信公众号RSS服务
    icon: https://wechat2rss.xlab.app/image/logo.png
    variables:
        - key: LIC_EMAIL
          type: STRING
          name: 激活邮箱
          description: 激活邮箱
        - key: LIC_CODE
          type: STRING
          name: 激活码
          description: 激活码
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: 绑定
          description: 服务绑定域名
        - key: RSS_HOST
          type: STRING
          name: RSS_HOST
          description: 完整的服务绑定域名
    tags:
        - API
        - Tool
        - Automation
    readme: 参考 https://wechat2rss.xlab.app/deploy/
    services:
        - name: wechat2rss
          icon: https://wechat2rss.xlab.app/image/logo.png
          template: PREBUILT
          spec:
            source:
                image: ttttmr/wechat2rss:latest
            ports:
                - id: wechat2rss
                  port: 8080
                  type: HTTP
            volumes:
                - id: data
                  dir: /wechat2rss
            env:
                LIC_CODE:
                    default: ${LIC_CODE}
                LIC_EMAIL:
                    default: ${LIC_EMAIL}
                RSS_HOST:
                    default: ${RSS_HOST}
                RSS_HTTPS:
                    default: "1"
                TZ:
                    default: Asia/Shanghai
          domainKey: PUBLIC_DOMAIN
