# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: ZS-sillytavern
spec:
    description: 云酒馆，部署教程：https://zsai.org
    coverImage: https://media-hosting.imagekit.io//62cc5680bbd24ec3/logo_bg-removal%20(1)_emotion_neutral.png?Expires=1835034225&Key-Pair-Id=K2ZIVPTIP2VGHC&Signature=IzymgNUO-TXcU0n-ZW5krqejbf~YZiwi2QtMCVH1SxgDDrKE4SEUxCRtldWE42UYeABK2PUr2loDCH6dlZCXJ55ZCdiYYNEk59wVBglCe53lh6Wq727ujRVBPAoW2SNzlHXyUH5UZNPf8Ez9GJpI-l9vwQ0NX~4kjGldIAoZEForYWjUDEm0wNjZEWUqqAqyZVhARxuH00RDOmLI4348LTSn6ChbDG9b0Hf7fQj-kAQbeI-76oXB3xCnUd0bf86hRntKs0uRnGLFQTORg32EuvYpHeqz1~gaxw~7JcY6RYeSIPLDVQMw63jJq7A0JHZqVaqx86DfVHBT-jOtxInKaw__
    icon: https://media-hosting.imagekit.io//62cc5680bbd24ec3/logo_bg-removal%20(1)_emotion_neutral.png?Expires=1835034225&Key-Pair-Id=K2ZIVPTIP2VGHC&Signature=IzymgNUO-TXcU0n-ZW5krqejbf~YZiwi2QtMCVH1SxgDDrKE4SEUxCRtldWE42UYeABK2PUr2loDCH6dlZCXJ55ZCdiYYNEk59wVBglCe53lh6Wq727ujRVBPAoW2SNzlHXyUH5UZNPf8Ez9GJpI-l9vwQ0NX~4kjGldIAoZEForYWjUDEm0wNjZEWUqqAqyZVhARxuH00RDOmLI4348LTSn6ChbDG9b0Hf7fQj-kAQbeI-76oXB3xCnUd0bf86hRntKs0uRnGLFQTORg32EuvYpHeqz1~gaxw~7JcY6RYeSIPLDVQMw63jJq7A0JHZqVaqx86DfVHBT-jOtxInKaw__
    readme: 云酒馆，部署教程：https://zsai.org/docs/%E7%9B%AE%E5%BD%95/%E5%AE%9E%E8%B7%B5%E6%95%99%E7%A8%8B%E5%8C%BA/AIGC%E4%B8%93%E5%8C%BA/%E8%A7%92%E8%89%B2%E6%89%AE%E6%BC%94%E4%B8%93%E5%8C%BA/%E9%85%92%E9%A6%86%E4%B8%93%E5%8C%BA/%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/%E9%85%92%E9%A6%86/Zeabur%E9%83%A8%E7%BD%B2/
    services:
        - name: sillytavern
          icon: https://media-hosting.imagekit.io//62cc5680bbd24ec3/logo_bg-removal%20(1)_emotion_neutral.png?Expires=1835034225&Key-Pair-Id=K2ZIVPTIP2VGHC&Signature=IzymgNUO-TXcU0n-ZW5krqejbf~YZiwi2QtMCVH1SxgDDrKE4SEUxCRtldWE42UYeABK2PUr2loDCH6dlZCXJ55ZCdiYYNEk59wVBglCe53lh6Wq727ujRVBPAoW2SNzlHXyUH5UZNPf8Ez9GJpI-l9vwQ0NX~4kjGldIAoZEForYWjUDEm0wNjZEWUqqAqyZVhARxuH00RDOmLI4348LTSn6ChbDG9b0Hf7fQj-kAQbeI-76oXB3xCnUd0bf86hRntKs0uRnGLFQTORg32EuvYpHeqz1~gaxw~7JcY6RYeSIPLDVQMw63jJq7A0JHZqVaqx86DfVHBT-jOtxInKaw__
          template: PREBUILT_V2
          spec:
            id: sillytavern
            source:
                source: GITHUB
                repo: 929459222
                branch: release
                rootDirectory: /
            ports:
                - id: web
                  port: 8000
                  type: HTTP
            volumes:
                - id: data
                  dir: /home/node/app/data
            env:
                PORT:
                    default: ${WEB_PORT}
                    expose: false
            configs:
                - path: /home/node/app/config.yaml
                  template: |
                    dataRoot: ./data
                    cardsCacheCapacity: 100
                    listen: true
                    listenAddress:
                      ipv4: 0.0.0.0
                      ipv6: "[::]"
                    protocol:
                      ipv4: true
                      ipv6: false
                    dnsPreferIPv6: false
                    autorunHostname: auto
                    port: 8000
                    autorunPortOverride: -1
                    whitelistMode: false
                    enableForwardedWhitelist: false
                    whitelist:
                      - ::1
                      - 127.0.0.1
                    basicAuthMode: true
                    basicAuthUser:
                      username: root
                      password: a20250219
                    enableCorsProxy: false
                    requestProxy:
                      enabled: false
                      url: socks5://username:password@example.com:1080
                      bypass:
                        - localhost
                        - 127.0.0.1
                    enableUserAccounts: false
                    enableDiscreetLogin: false
                    autheliaAuth: false
                    perUserBasicAuth: false
                    minLogLevel: 0
                    sessionTimeout: -1
                    cookieSecret: ReRRJ71U0wQcvkqs4Lt9ABfkOmuOdRW9P7TAiKy4uStWJk87q7tdHx/ULJM0hRFYd5VMVS+cWKgjGSztxSVDVg==
                    disableCsrfProtection: false
                    securityOverride: false
                    autorun: true
                    avoidLocalhost: false
                    backups:
                      common:
                        numberOfBackups: 50
                      chat:
                        enabled: true
                        maxTotalBackups: -1
                        throttleInterval: 10000
                    thumbnails:
                      enabled: true
                      format: jpg
                      quality: 95
                      dimensions:
                        bg:
                          - 160
                          - 90
                        avatar:
                          - 96
                          - 144
                    allowKeysExposure: false
                    skipContentCheck: false
                    whitelistImportDomains:
                      - localhost
                      - cdn.discordapp.com
                      - files.catbox.moe
                      - raw.githubusercontent.com
                    requestOverrides: []
                    extensions:
                      enabled: true
                      autoUpdate: true
                      models:
                        autoDownload: true
                        classification: Cohee/distilbert-base-uncased-go-emotions-onnx
                        captioning: Xenova/vit-gpt2-image-captioning
                        embedding: Cohee/jina-embeddings-v2-base-en
                        speechToText: Xenova/whisper-small
                        textToSpeech: Xenova/speecht5_tts
                    enableDownloadableTokenizers: true
                    promptPlaceholder: "[Start a new chat]"
                    openai:
                      randomizeUserId: false
                      captionSystemPrompt: ""
                    deepl:
                      formality: default
                    mistral:
                      enablePrefix: false
                    ollama:
                      keepAlive: -1
                      batchSize: -1
                    claude:
                      enableSystemPromptCache: false
                      cachingAtDepth: -1
                    enableServerPlugins: false
                    enableServerPluginsAutoUpdate: true
                  permission: null
                  envsubst: null
