# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: WeWe RSS
spec:
    description: 更优雅的微信公众号订阅方式。
    coverImage: https://raw.githubusercontent.com/cooderl/wewe-rss/main/assets/preview1.png
    icon: https://raw.githubusercontent.com/cooderl/wewe-rss/main/assets/logo.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: 域名
          description: 你的 WeWe RSS 域名
    tags:
        - Automation
        - Tool
        - Website
    readme: |+
        # [WeWe RSS](https://github.com/cooderl/wewe-rss)

        更优雅的微信公众号订阅方式。

        ## 使用教程

        部署后，从 Zeabur 控制台复制 `AUTH_CODE`：

        ![](https://cdn.zeabur.com/Xnapper-2024-09-12-14.01.10.jpg)

        然后打开你绑定的域名，在页面中间的输入框中输入刚刚复制的 `AUTH_CODE`：

        ![](https://cdn.zeabur.com/wewe-authcode.jpg)

    services:
        - name: WeWe RSS
          icon: https://raw.githubusercontent.com/cooderl/wewe-rss/main/assets/logo.png
          template: PREBUILT
          spec:
            id: wewe-rss
            source:
                image: cooderl/wewe-rss-sqlite:latest
            ports:
                - id: web
                  port: 4000
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/data
            instructions:
                - title: Wewe RSS 授权码 (Auth Code)
                  content: ${AUTH_CODE}
            env:
                AUTH_CODE:
                    default: ${PASSWORD}
                DATABASE_TYPE:
                    default: sqlite
          domainKey: PUBLIC_DOMAIN
