# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: SillyTavern
spec:
    description: LLM Frontend for Power Users.
    icon: https://avatars.githubusercontent.com/u/134869877
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: What is the domain you want for your SillyTavern?
    tags:
        - Tool
    readme: LLM Frontend for Power Users.
    services:
        - name: sillytavern
          icon: https://avatars.githubusercontent.com/u/134869877
          template: PREBUILT
          spec:
            id: sillytavern
            source:
                image: ghcr.io/sillytavern/sillytavern:latest
            ports:
                - id: web
                  port: 8000
                  type: HTTP
            volumes:
                - id: data
                  dir: /home/node/app/data
                - id: config
                  dir: /home/node/app/config
                - id: plugins
                  dir: /home/node/app/plugins
                - id: extensions
                  dir: /home/node/app/public/scripts/extensions/third-party
            instructions:
                - title: Default Usernamer
                  content: user
                - title: Default Password
                  content: password
            configs:
                - path: /home/node/app/config/config.yaml
                  template: "dataRoot: ./data\nlisten: false\nport: 8000\nwhitelistMode: false \nenableForwardedWhitelist: true\nwhitelist:\n  - 127.0.0.1\nbasicAuthMode: true \nbasicAuthUser:\n  username: user\n  password: password\nenableCorsProxy: false\nenableUserAccounts: false\nenableDiscreetLogin: false\ncookieSecret: nbbZjvwK6hXxIRjEojJ7ofPCqDEh+Ii/VOFufiq6A7fw5Mfp5Iv6Ey1Lr91ngty/2suxiczMX7lT1AcUDe3vZQ==\ndisableCsrfProtection: false\nsecurityOverride: false\nautorun: true\ndisableThumbnails: false\nthumbnailsQuality: 95\navatarThumbnailsPng: false\nallowKeysExposure: false\nskipContentCheck: false\ndisableChatBackup: false\nnumberOfBackups: 50\nwhitelistImportDomains:\n  - localhost\n  - cdn.discordapp.com\n  - files.catbox.moe\n  - raw.githubusercontent.com\nrequestOverrides: []\nenableExtensions: true\nextras:\n  disableAutoDownload: false\n  classificationModel: Cohee/distilbert-base-uncased-go-emotions-onnx\n  captioningModel: Xenova/vit-gpt2-image-captioning\n  embeddingModel: Cohee/jina-embeddings-v2-base-en\n  promptExpansionModel: Cohee/fooocus_expansion-onnx\n  speechToTextModel: Xenova/whisper-small\n  textToSpeechModel: Xenova/speecht5_tts\nopenai:\n  randomizeUserId: false\n  captionSystemPrompt: \"\"\ndeepl:\n  formality: default\nenableServerPlugins: false"
                  permission: null
                  envsubst: null
          domainKey: PUBLIC_DOMAIN
