# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: \[WIP\]Bark Server (Serverless)
spec:
    description: Bark is a privacy-focused, secure, and controllable custom notification push tool.
    coverImage: https://camo.githubusercontent.com/0e5564bc970291ae1ddbc1cee4bdc1e5374d027a7001fe79fc1b862401f1bfe6/68747470733a2f2f7778342e73696e61696d672e636e2f6d77323030302f30303372596671706c7931677264316d65717276636a3630626930387a74396930322e6a7067
    icon: https://bark.day.app/_media/Icon.png
    variables:
        - key: BARK_KEY
          type: STRING
          name: Bark Key
          description: Your unique Bark key for authentication.
        - key: BARK_DEVICE_TOKEN
          type: STRING
          name: Device Token
          description: The device token to receive notifications.
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Public Domain
          description: The public domain for accessing the Bark Server.
    tags:
        - Monitoring
        - Automation
        - Services
    readme: |-
        # Bark Server
        Bark is an iOS App which allows you to push custom notifications to your iPhone. It is privacy-focused, secure, and controllable.

        ## Setup Instructions
        1. Download the Bark app from the [App Store](https://apps.apple.com/us/app/bark-customed-notifications/id1403753865).
        2. Set your Bark Key and Device Token as environment variables.
        3. Deploy the server to start receiving notifications.

        ## Links
        - [Bark App](https://bark.day.app)
    services:
        - name: BarkServer
          icon: https://bark.day.app/_media/Icon.png
          template: GIT
          spec:
            source:
                source: GITHUB
                repo: 715333411
            env:
                BARK_DEVICE_TOKEN:
                    default: ${BARK_DEVICE_TOKEN}
                BARK_KEY:
                    default: ${BARK_KEY}
                BARK_SERVER_SERVERLESS:
                    default: "true"
localization:
    zh-CN:
        description: Bark 是一个注重隐私、安全且可控的自定义通知推送工具。
        variables:
            - key: BARK_KEY
              type: STRING
              name: Bark 密钥
              description: 您的唯一 Bark 认证密钥。
            - key: BARK_DEVICE_TOKEN
              type: STRING
              name: 设备令牌
              description: 接收通知的设备令牌。
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 公共域名
              description: 用于访问 Bark 服务器的公共域名。
        readme: |-
            # Bark 服务器
            Bark 是一款 iOS 应用，允许您将自定义通知推送到您的 iPhone。它注重隐私、安全且可控。

            ## 设置说明
            1. 从 [App Store](https://apps.apple.com/us/app/bark-customed-notifications/id1403753865) 下载 Bark 应用。
            2. 将您的 Bark 密钥和设备令牌设置为环境变量。
            3. 部署服务器以开始接收通知。

            ## 链接
            - [Bark 应用](https://bark.day.app)
