# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Dify v1.9.1 (enable_network)
spec:
    description: Dify is an open-source LLM app development platform.
    coverImage: https://cdn.zeabur.com/dify-banner.png
    icon: https://cdn.zeabur.com/dify-icon.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: Domain of your Dify app.
    tags:
        - LLM
        - Workflow
        - AI
        - Dify
    readme: |
        Dify is an open-source LLM app development platform. Its intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

        ## ⚠️ Warning

        This template is limited to Dify version 1.x.

        You can safely update the container image during the updates of this major version (just changing the image tags).

        If you want to upgrade to a higher version like V2 in one day. Please back up your data in advance and contact zeabur staff or carefully review the updated tutorial.

        **We do not guarantee that this template will be available during V2.**

        ## Features

        1. **Workflows**: Build and test powerful AI workflows on a visual canvas, leveraging all the following features and beyond.
        2. **Comprehensive model support**: Seamless integration with hundreds of proprietary / open-source LLMs from dozens of inference providers and self-hosted solutions, covering GPT, Mistral, Llama3, and any OpenAI API-compatible models. A full list of supported model providers can be found [in the Model Providers section](https://docs.dify.ai/getting-started/readme/model-providers).
        3. **Prompt IDE**: Intuitive interface for crafting prompts, comparing model performance, and adding additional features such as text-to-speech to a chat-based app.
        4. **RAG Pipeline**: Extensive RAG capabilities that cover everything from document ingestion to retrieval, with out-of-box support for text extraction from PDFs, PPTs, and other common document formats.
        5. **Agent capabilities**: You can define agents based on LLM Function Calling or ReAct, and add pre-built or custom tools for the agent. Dify provides 50+ built-in tools for AI agents, such as Google Search, DELL·E, Stable Diffusion and WolframAlpha.
        6. **LLMOps**: Monitor and analyze application logs and performance over time. You could continuously improve prompts, datasets, and models based on production data and annotations.
        7. **Backend-as-a-Service**: All of Dify's offerings come with corresponding APIs, so you could effortlessly integrate Dify into your own business logic.

        ## Deployment

        To deploy Dify, click the "Deploy" button in the top-right corner, and fill in the required domain name. Once deployed, you can access your Dify app at `https://<your-domain>.zeabur.app`.

        ## App structure

        - Redis, PostgreSQL, MINIO, and Webaviate for data storage and caching.
        - `api`, `worker`, `web`, `plugin_daemon` and `sandbox` are the microservices of Dify.
        - `nginx` is the gateway of Dify. It integrates the microservices to a single host. In another words, **it is the entry point of your Dify app.**

        ## Configuration

        Refer to <https://docs.dify.ai/getting-started/install-self-hosted/environments> for the configurable variables, which are primarily set in the `api` service.

        ### Upload File Size Limit

        The default upload file size limit is 15 MB. You can change this limit by modifying the `client_max_body_size` directive in the configuration file located at `/etc/nginx/nginx.conf` for the `nginx` service. The value should be a string with a unit (e.g., `15M` for 15 MB).

        Additionally, you may need to set the `UPLOAD_FILE_SIZE_LIMIT` variable in the environment of the `api` service to match this value. Ensure that this value is the same as the `client_max_body_size` directive in the `/etc/nginx/nginx.conf` configuration (e.g., `15M` for 15 MB).

        ## Add Sandbox python requirements

        - Edit `dependencies/python-requirements.txt` in the "Settings" tab of the "Sandbox" service.
    services:
        - name: nginx
          icon: https://www.svgrepo.com/show/373924/nginx.svg
          template: PREBUILT
          spec:
            source:
                image: nginx:1.27
            ports:
                - id: web
                  port: 80
                  type: HTTP
            env:
                DIFY_GATEWAY_URL:
                    default: https://${ZEABUR_WEB_DOMAIN}
                    expose: true
            configs:
                - path: /etc/nginx/proxy.conf
                  template: |
                    proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_buffering off; proxy_read_timeout 3600s; proxy_send_timeout 3600s;
                  permission: null
                  envsubst: null
                - path: /etc/nginx/nginx.conf
                  template: |
                    user  nginx; worker_processes  auto;
                    error_log  /var/log/nginx/error.log notice; pid        /var/run/nginx.pid;
                    events {
                      worker_connections  1024;
                    }
                    http {
                      include       /etc/nginx/mime.types;
                      default_type  application/octet-stream;

                      log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

                      access_log  /var/log/nginx/access.log  main;

                      sendfile        on;
                      keepalive_timeout  65;
                      client_max_body_size 15M;
                      include /etc/nginx/conf.d/*.conf;
                    }
                  permission: null
                  envsubst: null
                - path: /etc/nginx/conf.d/default.conf
                  template: |
                    server {
                    listen 80;
                    server_name _;

                    location /console/api {
                        proxy_pass http://api:5001;
                        include proxy.conf;
                      }

                      location /api {
                        proxy_pass http://api:5001;
                        include proxy.conf;
                      }

                      location /v1 {
                        proxy_pass http://api:5001;
                        include proxy.conf;
                      }

                      location /files {
                        proxy_pass http://api:5001;
                        include proxy.conf;
                      }

                      location /explore {
                        proxy_pass http://web:3000;
                        include proxy.conf;
                      }

                      location /e/ {
                        proxy_pass http://plugin-daemon:5002;
                        proxy_set_header Dify-Hook-Url $scheme://$host$request_uri;
                        include proxy.conf;
                      }

                      location / {
                        proxy_pass http://web:3000;
                        include proxy.conf;
                      }
                    }
                  permission: null
                  envsubst: null
          domainKey: PUBLIC_DOMAIN
        - name: redis
          icon: https://raw.githubusercontent.com/zeabur/service-icons/main/marketplace/redis.svg
          template: PREBUILT
          spec:
            source:
                image: redis/redis-stack-server:7.2.0-v17
            ports:
                - id: database
                  port: 6379
                  type: TCP
            volumes:
                - id: data
                  dir: /data
            instructions:
                - title: Command to connect to your Redis
                  content: redis-cli -h ${PORT_FORWARDED_HOSTNAME} -p ${DATABASE_PORT_FORWARDED_PORT} -a ${REDIS_PASSWORD}
                - title: Redis Connection String
                  content: redis://:${REDIS_PASSWORD}@${PORT_FORWARDED_HOSTNAME}:${DATABASE_PORT_FORWARDED_PORT}
                - title: Redis password
                  content: ${REDIS_PASSWORD}
                - title: Redis host
                  content: ${PORT_FORWARDED_HOSTNAME}
                - title: Redis port
                  content: ${DATABASE_PORT_FORWARDED_PORT}
            env:
                REDIS_ARGS:
                    default: --requirepass ${REDIS_PASSWORD}
                REDIS_CONNECTION_STRING:
                    default: redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}
                    expose: true
                REDIS_HOST:
                    default: ${CONTAINER_HOSTNAME}
                    expose: true
                REDIS_PASSWORD:
                    default: ${PASSWORD}
                    expose: true
                REDIS_PORT:
                    default: ${DATABASE_PORT}
                    expose: true
                REDIS_URI:
                    default: ${REDIS_CONNECTION_STRING}
                    expose: true
        - name: db
          icon: https://raw.githubusercontent.com/zeabur/service-icons/main/marketplace/postgresql.svg
          template: PREBUILT
          spec:
            source:
                image: postgres:16
            ports:
                - id: database
                  port: 5432
                  type: TCP
            volumes:
                - id: data
                  dir: /var/lib/postgresql/data
            instructions:
                - title: Connection String
                  content: postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${PORT_FORWARDED_HOSTNAME}:${DATABASE_PORT_FORWARDED_PORT}/${POSTGRES_DATABASE}
                - title: PostgreSQL Connect Command
                  content: psql "postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${PORT_FORWARDED_HOSTNAME}:${DATABASE_PORT_FORWARDED_PORT}/${POSTGRES_DATABASE}"
                - title: PostgreSQL username
                  content: ${POSTGRES_USERNAME}
                - title: PostgresSQL password
                  content: ${POSTGRES_PASSWORD}
                - title: PostgresSQL database
                  content: ${POSTGRES_DATABASE}
                - title: PostgreSQL host
                  content: ${PORT_FORWARDED_HOSTNAME}
                - title: PostgreSQL port
                  content: ${DATABASE_PORT_FORWARDED_PORT}
            env:
                PGDATA:
                    default: /var/lib/postgresql/data/pgdata
                POSTGRES_CONNECTION_STRING:
                    default: postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DATABASE}
                    expose: true
                POSTGRES_DATABASE:
                    default: ${POSTGRES_DB}
                    expose: true
                POSTGRES_DB:
                    default: zeabur
                POSTGRES_HOST:
                    default: ${CONTAINER_HOSTNAME}
                    expose: true
                POSTGRES_PASSWORD:
                    default: ${PASSWORD}
                    expose: true
                POSTGRES_PORT:
                    default: ${DATABASE_PORT}
                    expose: true
                POSTGRES_URI:
                    default: ${POSTGRES_CONNECTION_STRING}
                    expose: true
                POSTGRES_USER:
                    default: root
                POSTGRES_USERNAME:
                    default: ${POSTGRES_USER}
                    expose: true
        - name: minio
          icon: https://raw.githubusercontent.com/zeabur/service-icons/main/marketplace/minio.svg
          template: PREBUILT
          spec:
            source:
                image: quay.io/minio/minio:RELEASE.2025-06-13T11-33-47Z
                command:
                    - /bin/sh
                args:
                    - -c
                    - |
                      minio server /data --console-address :9090 &
                      MINIO_PID=$!
                      while ! curl -s http://localhost:9000/minio/health/live; do
                        echo 'Waiting for MinIO to start...'
                        sleep 1
                      done
                      sleep 5
                      mc alias set myminio http://localhost:9000 $MINIO_USERNAME $MINIO_PASSWORD
                      echo "Creating bucket '$MINIO_DEFAULT_BUCKET'"
                      mc mb myminio/$MINIO_DEFAULT_BUCKET
                      wait $MINIO_PID
            ports:
                - id: web
                  port: 9000
                  type: HTTP
                - id: console
                  port: 9090
                  type: HTTP
            volumes:
                - id: data
                  dir: /data
            instructions:
                - title: Go to MinIO Console
                  content: ${MINIO_CONSOLE_URL}
                - title: MinIO Username
                  content: ${MINIO_USERNAME}
                - title: MinIO Password
                  content: ${MINIO_PASSWORD}
            env:
                MINIO_BROWSER_REDIRECT:
                    default: "false"
                MINIO_CONSOLE_URL:
                    default: ${ZEABUR_CONSOLE_URL}
                    expose: true
                MINIO_DEFAULT_BUCKET:
                    default: dify
                MINIO_PASSWORD:
                    default: ${MINIO_ROOT_PASSWORD}
                    expose: true
                MINIO_ROOT_PASSWORD:
                    default: ${PASSWORD}
                MINIO_ROOT_USER:
                    default: minio
                MINIO_USERNAME:
                    default: ${MINIO_ROOT_USER}
                    expose: true
        - name: api
          icon: https://cdn.zeabur.com/dify-icon.png
          template: PREBUILT
          spec:
            source:
                image: langgenius/dify-api:1.9.1
            ports:
                - id: api
                  port: 5001
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/api/storage
            env:
                API_SECRET_KEY:
                    default: ${PASSWORD}
                    expose: true
                APP_WEB_URL:
                    default: ${DIFY_GATEWAY_URL}
                CELERY_BROKER_URL:
                    default: redis://:${REDIS_PASSWORD}@redis:6379/1
                CODE_EXECUTION_API_KEY:
                    default: dify-sandbox
                CODE_EXECUTION_ENDPOINT:
                    default: http://sandbox:8194
                CODE_MAX_NUMBER:
                    default: "9223372036854775807"
                CODE_MAX_NUMBER_ARRAY_LENGTH:
                    default: "1000"
                CODE_MAX_OBJECT_ARRAY_LENGTH:
                    default: "30"
                CODE_MAX_STRING_ARRAY_LENGTH:
                    default: "30"
                CODE_MAX_STRING_LENGTH:
                    default: "80000"
                CODE_MIN_NUMBER:
                    default: "-9223372036854775808"
                CONSOLE_API_URL:
                    default: ${DIFY_GATEWAY_URL}
                CONSOLE_WEB_URL:
                    default: ${DIFY_GATEWAY_URL}
                DB_DATABASE:
                    default: ${POSTGRES_DATABASE}
                DB_HOST:
                    default: ${POSTGRES_HOST}
                DB_PASSWORD:
                    default: ${POSTGRES_PASSWORD}
                DB_PORT:
                    default: ${POSTGRES_PORT}
                DB_USERNAME:
                    default: ${POSTGRES_USERNAME}
                ENDPOINT_URL_TEMPLATE:
                    default: http://plugin-daemon:5002/e/{hook_id}
                MARKETPLACE_API_URL:
                    default: https://marketplace.dify.ai
                MARKETPLACE_ENABLED:
                    default: "true"
                MIGRATION_ENABLED:
                    default: "true"
                MODE:
                    default: api
                PLUGIN_DAEMON_KEY:
                    default: lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
                PLUGIN_DAEMON_PORT:
                    default: "5002"
                PLUGIN_DAEMON_URL:
                    default: http://plugin-daemon:5002
                REDIS_DB:
                    default: "0"
                REDIS_USE_SSL:
                    default: "false"
                REDIS_USERNAME:
                    default: ""
                S3_ACCESS_KEY:
                    default: ${MINIO_USERNAME}
                S3_BUCKET_NAME:
                    default: dify
                S3_ENDPOINT:
                    default: http://minio.zeabur.internal:9000
                S3_REGION:
                    default: us-east-1
                S3_SECRET_KEY:
                    default: ${MINIO_PASSWORD}
                SECRET_KEY:
                    default: ${API_SECRET_KEY}
                SERVICE_API_URL:
                    default: ${DIFY_GATEWAY_URL}
                STORAGE_TYPE:
                    default: s3
                TEMPLATE_TRANSFORM_MAX_LENGTH:
                    default: "80000"
                VECTOR_STORE:
                    default: weaviate
                WEAVIATE_API_KEY:
                    default: WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
                WEAVIATE_ENDPOINT:
                    default: http://weaviate:8080
        - name: worker
          icon: https://cdn.zeabur.com/dify-icon.png
          template: PREBUILT
          spec:
            source:
                image: langgenius/dify-api:1.9.1
            env:
                APP_WEB_URL:
                    default: ${DIFY_GATEWAY_URL}
                CELERY_BROKER_URL:
                    default: redis://:${REDIS_PASSWORD}@redis:6379/1
                CODE_EXECUTION_API_KEY:
                    default: dify-sandbox
                CODE_EXECUTION_ENDPOINT:
                    default: http://sandbox:8194
                CODE_MAX_NUMBER:
                    default: "9223372036854775807"
                CODE_MAX_NUMBER_ARRAY_LENGTH:
                    default: "1000"
                CODE_MAX_OBJECT_ARRAY_LENGTH:
                    default: "30"
                CODE_MAX_STRING_ARRAY_LENGTH:
                    default: "30"
                CODE_MAX_STRING_LENGTH:
                    default: "80000"
                CODE_MIN_NUMBER:
                    default: "-9223372036854775808"
                CONSOLE_API_URL:
                    default: ${DIFY_GATEWAY_URL}
                CONSOLE_WEB_URL:
                    default: ${DIFY_GATEWAY_URL}
                DB_DATABASE:
                    default: ${POSTGRES_DATABASE}
                DB_HOST:
                    default: ${POSTGRES_HOST}
                DB_PASSWORD:
                    default: ${POSTGRES_PASSWORD}
                DB_PORT:
                    default: ${POSTGRES_PORT}
                DB_USERNAME:
                    default: ${POSTGRES_USERNAME}
                ENDPOINT_URL_TEMPLATE:
                    default: http://plugin-daemon:5002/e/{hook_id}
                LOG_LEVEL:
                    default: INFO
                MIGRATION_ENABLED:
                    default: "true"
                MODE:
                    default: worker
                PLUGIN_DAEMON_KEY:
                    default: lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
                PLUGIN_DAEMON_PORT:
                    default: "5002"
                PLUGIN_DAEMON_URL:
                    default: http://plugin-daemon:5002
                REDIS_DB:
                    default: "0"
                REDIS_USE_SSL:
                    default: "false"
                REDIS_USERNAME:
                    default: ""
                S3_ACCESS_KEY:
                    default: ${MINIO_USERNAME}
                S3_BUCKET_NAME:
                    default: dify
                S3_ENDPOINT:
                    default: http://minio.zeabur.internal:9000
                S3_REGION:
                    default: us-east-1
                S3_SECRET_KEY:
                    default: ${MINIO_PASSWORD}
                SECRET_KEY:
                    default: ${API_SECRET_KEY}
                STORAGE_TYPE:
                    default: s3
                TEMPLATE_TRANSFORM_MAX_LENGTH:
                    default: "80000"
                VECTOR_STORE:
                    default: weaviate
                WEAVIATE_API_KEY:
                    default: WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
                WEAVIATE_ENDPOINT:
                    default: http://weaviate:8080
        - name: web
          icon: https://cdn.zeabur.com/dify-icon.png
          template: PREBUILT
          spec:
            source:
                image: langgenius/dify-web:1.9.1
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            env:
                APP_API_URL:
                    default: ${DIFY_GATEWAY_URL}
                CONSOLE_API_URL:
                    default: ${DIFY_GATEWAY_URL}
                MARKETPLACE_API_URL:
                    default: https://marketplace.dify.ai
                MARKETPLACE_ENABLED:
                    default: "true"
                MARKETPLACE_URL:
                    default: https://marketplace.dify.ai
        - name: weaviate
          icon: https://avatars.githubusercontent.com/u/37794290
          template: PREBUILT
          spec:
            source:
                image: semitechnologies/weaviate:1.26.3
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            volumes:
                - id: data
                  dir: /var/lib/weaviate
            env:
                AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED:
                    default: "false"
                AUTHENTICATION_APIKEY_ALLOWED_KEYS:
                    default: WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
                AUTHENTICATION_APIKEY_ENABLED:
                    default: "true"
                AUTHENTICATION_APIKEY_USERS:
                    default: hello@dify.ai
                AUTHORIZATION_ADMINLIST_ENABLED:
                    default: "true"
                AUTHORIZATION_ADMINLIST_USERS:
                    default: hello@dify.ai
                CLUSTER_HOSTNAME:
                    default: node1
                DEFAULT_VECTORIZER_MODULE:
                    default: none
                ENABLE_MODULES:
                    default: text2vec-cohere,text2vec-huggingface,text2vec-palm,text2vec-openai,generative-openai,generative-cohere,generative-palm,ref2vec-centroid,reranker-cohere,qna-openai
                PERSISTENCE_DATA_PATH:
                    default: /var/lib/weaviate
                QUERY_DEFAULTS_LIMIT:
                    default: "25"
        - name: sandbox
          icon: https://cdn.zeabur.com/dify-icon.png
          template: PREBUILT
          spec:
            source:
                image: langgenius/dify-sandbox:0.2.12
            ports:
                - id: web
                  port: 8194
                  type: HTTP
            volumes:
                - id: dependencies
                  dir: /dependencies
                - id: conf
                  dir: /conf
            env:
                API_KEY:
                    default: dify-sandbox
                ENABLE_NETWORK:
                    default: "true"
                GIN_MODE:
                    default: release
                SANDBOX_PORT:
                    default: "8194"
                WORKER_TIMEOUT:
                    default: "15"
        - name: plugin-daemon
          icon: https://cdn.zeabur.com/dify-icon.png
          template: PREBUILT
          spec:
            source:
                image: langgenius/dify-plugin-daemon:0.3.1-local
            ports:
                - id: pluginapi
                  port: 5002
                  type: HTTP
                - id: plugindebug
                  port: 5003
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/storage
            env:
                DB_DATABASE:
                    default: dify_plugin
                DB_HOST:
                    default: ${POSTGRES_HOST}
                DB_PASSWORD:
                    default: ${POSTGRES_PASSWORD}
                DB_PORT:
                    default: ${POSTGRES_PORT}
                DB_USERNAME:
                    default: ${POSTGRES_USERNAME}
                DIFY_INNER_API_KEY:
                    default: QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
                DIFY_INNER_API_URL:
                    default: http://api:5001
                FORCE_VERIFYING_SIGNATURE:
                    default: "true"
                MAX_PLUGIN_PACKAGE_SIZE:
                    default: "52428800"
                PLUGIN_MAX_EXECUTION_TIMEOUT:
                    default: "600"
                PLUGIN_REMOTE_INSTALLING_HOST:
                    default: 0.0.0.0
                PLUGIN_REMOTE_INSTALLING_PORT:
                    default: "5003"
                PLUGIN_WORKING_PATH:
                    default: /app/storage/cwd
                PPROF_ENABLED:
                    default: "false"
                PYTHON_ENV_INIT_TIMEOUT:
                    default: "120"
                SERVER_KEY:
                    default: lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
                SERVER_PORT:
                    default: "5002"
localization:
    ja-JP:
        description: Difyは、オープンソースの大規模言語モデル（LLM）アプリケーション開発プラットフォームです。
        readme: |-
            Difyは、オープンソースの大規模言語モデル（LLM）アプリケーション開発プラットフォームです。その直感的なインターフェースには、AIワークフロー、RAGパイプライン、エージェント機能、モデル管理、可観測性機能などが統合されており、プロトタイプから実際のアプリケーションへと迅速に移行できます。

            ## ⚠️ 警告

            このテンプレートはDify 1.xバージョンのみに限定されています。

            このメジャーバージョンアップデート期間中は、コンテナイメージファイル（イメージファイルタグの変更のみ）を安全に更新できます。

            将来、例えばV2のような上位バージョンにアップグレードしたい場合は、必ず事前にデータをバックアップし、Zeaburのカスタマーサポートに連絡するか、更新チュートリアルをよくお読みください。

            **このテンプレートがV2バージョンで利用可能であることは保証しません。**

            ## 機能

            1. **ワークフロー**：視覚的なキャンバス上で強力なAIワークフローを構築・テストし、以下のすべての機能などを最大限に活用できます。
            2. **包括的なモデルサポート**：GPT、Mistral、Llama3、そしてOpenAI API互換のあらゆるモデルを含む、数十の推論サービスプロバイダーおよびセルフホストソリューションからの数百のプロプライエタリ/オープンソースの大規模言語モデルとシームレスに統合できます。サポートされているモデルプロバイダーの完全なリストは、[モデルプロバイダーセクション](https://docs.dify.ai/getting-started/readme/model-providers)で確認できます。
            3. **プロンプト開発環境**：プロンプトの設計、モデル性能の比較、チャットアプリケーションへのテキスト読み上げなどの追加機能の追加のための直感的なインターフェースです。
            4. **RAGパイプライン**：ドキュメント抽出から検索まですべての段階をカバーする広範なRAG機能を提供し、PDF、PPT、その他の一般的なドキュメント形式からのテキスト抽出をすぐに利用できます。
            5. **エージェント機能**：大規模言語モデル関数呼び出し（LLM Function Calling）またはReActに基づいてエージェントを定義し、エージェントに事前構築済みまたはカスタムツールを追加できます。Difyは、Google検索、DELL・E、Stable Diffusion、WolframAlphaなど、AIエージェントが使用できる50種類以上の組み込みツールを提供しています。
            6. **大規模言語モデル運用（LLMOps）**：アプリケーションのログと長期的なパフォーマンスを監視・分析します。実際の運用データと注釈に基づいて、プロンプト、データセット、モデルを継続的に改善できます。
            7. **Backend-as-a-Service**：Difyのすべてのサービスには対応するAPIが付属しており、Difyを自身のビジネスロジックに簡単に統合できます。

            ## デプロイ

            Difyをデプロイするには、右上の「デプロイ」ボタンをクリックし、必要なドメイン名を入力します。デプロイが完了すると、`https://<your-domain>.zeabur.app` からDifyアプリケーションにアクセスできます。

            ## アプリケーションアーキテクチャ

            - Redis、PostgreSQL、MINIO、およびWebaviateは、データストレージとキャッシュに使用されます。
            - `api`、`worker`、`web`、`plugin_daemon`、および`sandbox`はDifyのマイクロサービスです。
            - `nginx`はDifyのゲートウェイです。これはマイクロサービスを単一ホストに統合します。つまり、**これはDifyアプリケーションのエントリポイントです。**

            ## 設定

            設定可能な変数については、<https://docs.dify.ai/getting-started/install-self-hosted/environments> を参照してください。これらの変数は主に`api`サービスに設定されます。

            ### ファイルアップロードサイズ制限

            デフォルトのファイルアップロードサイズ制限は15 MBです。この制限は、`/etc/nginx/nginx.conf` にある`nginx`サービスの構成ファイル内の`client_max_body_size`ディレクティブを変更することで変更できます。この値は単位付きの文字列である必要があります（例: `15M`は15 MBを意味します）。

            さらに、`api`サービスの環境で`UPLOAD_FILE_SIZE_LIMIT`変数をこの値と一致するように設定する必要がある場合があります。この値が`/etc/nginx/nginx.conf`の構成における`client_max_body_size`ディレクティブと同じであることを確認してください（例: `15M`は15 MBを意味します）。

            ## Sandbox Python要件の追加

            - 「Sandbox」サービスの「設定」タブで`dependencies/python-requirements.txt`を編集します。
    zh-CN:
        description: Dify 是一个开源的大型语言模型（LLM）应用开发平台。
        readme: |-
            Dify 是一个开源的大型语言模型（LLM）应用程序开发平台。其直观的界面集成了 AI 工作流程、RAG 管道、代理功能、模型管理、可观测性功能等等，让您可以从原型快速推进到实际应用。

            ## ⚠️ 警告

            此模板仅限于 Dify 1.x 版本。

            您可以在此主要版本更新期间安全地更新容器镜像文件（只需更改镜像文件标签）。

            如果您想在未来某天升级到更高版本，例如 V2，请务必提前备份您的数据，并联系 Zeabur 客服或仔细阅读更新教程。

            **我们不保证此模板在 V2 版本中可用。**

            ## 功能

            1. **工作流程**：在可视化画布上构建并测试强大的 AI 工作流程，充分利用以下所有功能及更多。
            2. **全面的模型支持**：与数十家推理服务提供商和自托管解决方案的数百个专有/开源大型语言模型无缝集成，涵盖 GPT、Mistral、Llama3 以及任何与 OpenAI API 兼容的模型。支持的模型提供商完整列表可在[模型提供商部分](https://docs.dify.ai/getting-started/readme/model-providers)找到。
            3. **提示词开发环境**：直观的界面，用于设计提示词、比较模型性能，并为聊天应用程序添加文本转语音等额外功能。
            4. **RAG 管道**：广泛的 RAG 功能，涵盖从文档提取到检索的所有环节，并提供对 PDF、PPT 和其他常见文档格式的文本提取开箱即用支持。
            5. **代理功能**：您可以基于大型语言模型函数调用（LLM Function Calling）或 ReAct 定义代理，并为代理添加预构建或自定义工具。Dify 提供了 50 多种内置工具供 AI 代理使用，例如 Google Search、DELL·E、Stable Diffusion 和 WolframAlpha。
            6. **大型语言模型运维（LLMOps）**：监控并分析应用程序日志和长期性能。您可以根据实际运营数据和注释持续改进提示词、数据集和模型。
            7. **后端即服务（Backend-as-a-Service）**：Dify 的所有服务都附带相应的 API，因此您可以轻松将 Dify 集成到您自己的业务逻辑中。

            ## 部署

            要部署 Dify，请点击右上角的"部署"按钮，并填写所需的域名。部署完成后，您可以通过 `https://<your-domain>.zeabur.app` 访问您的 Dify 应用程序。

            ## 应用程序架构

            - Redis、PostgreSQL、MINIO 和 Webaviate 用于数据存储和缓存。
            - `api`、`worker`、`web`、`plugin_daemon` 和 `sandbox` 是 Dify 的微服务。
            - `nginx` 是 Dify 的网关。它将微服务集成到单一主机。换句话说，**它是您 Dify 应用程序的入口点。**

            ## 配置

            有关可配置变量的信息，请参考 <https://docs.dify.ai/getting-started/install-self-hosted/environments>，这些变量主要设置在 `api` 服务中。

            ### 上传文件大小限制

            默认上传文件大小限制为 15 MB。您可以通过修改位于 `/etc/nginx/nginx.conf` 中 `nginx` 服务的配置文件里的 `client_max_body_size` 指令来更改此限制。该值应为带有单位的字符串（例如，`15M` 表示 15 MB）。

            此外，您可能需要在 `api` 服务的环境中设置 `UPLOAD_FILE_SIZE_LIMIT` 变量以与此值相符。确保此值与 `/etc/nginx/nginx.conf` 配置中的 `client_max_body_size` 指令相同（例如，`15M` 表示 15 MB）。

            ## 添加 Sandbox Python 需求

            - 在"Sandbox"服务的"设置"选项卡中编辑 `dependencies/python-requirements.txt`。
    zh-TW:
        description: Dify 是一個開源的大型語言模型（LLM）應用開發平台。
        readme: |-
            Dify 是一個開源的大型語言模型（LLM）應用程式開發平台。其直覺的介面整合了 AI 工作流程、RAG 管道、代理功能、模型管理、可觀察性功能等等，讓您可以從原型快速推進到實際應用。

            ## ⚠️ 警告

            此範本僅限於 Dify 1.x 版本。

            您可以在此主要版本更新期間安全地更新容器映像檔（只需更改映像檔標籤）。

            如果您想在未來某天升級到更高版本，例如 V2，請務必提前備份您的資料，並聯絡 Zeabur 客服或仔細閱讀更新教學。

            **我們不保證此範本在 V2 版本中可用。**

            ## 功能

            1. **工作流程**：在視覺畫布上建構並測試強大的 AI 工作流程，充分利用以下所有功能及更多。
            2. **全面的模型支援**：與數十家推理服務提供商和自行託管解決方案的數百個專有/開源大型語言模型無縫整合，涵蓋 GPT、Mistral、Llama3 以及任何與 OpenAI API 相容的模型。支援的模型提供商完整列表可在[模型提供商部分](https://docs.dify.ai/getting-started/readme/model-providers)找到。
            3. **提示詞開發環境**：直覺的介面，用於設計提示詞、比較模型效能，並為聊天應用程式新增文字轉語音等額外功能。
            4. **RAG 管道**：廣泛的 RAG 功能，涵蓋從文件擷取到檢索的所有環節，並提供對 PDF、PPT 和其他常見文件格式的文字擷取開箱即用支援。
            5. **代理功能**：您可以基於大型語言模型函數呼叫（LLM Function Calling）或 ReAct 定義代理，並為代理新增預建或自訂工具。Dify 提供了 50 多種內建工具供 AI 代理使用，例如 Google Search、DELL·E、Stable Diffusion 和 WolframAlpha。
            6. **大型語言模型維運（LLMOps）**：監控並分析應用程式日誌和長期效能。您可以根據實際營運資料和註釋持續改進提示詞、資料集和模型。
            7. **後端即服務（Backend-as-a-Service）**：Dify 的所有服務都附帶相應的 API，因此您可以輕鬆將 Dify 整合到您自己的業務邏輯中。

            ## 部署

            要部署 Dify，請點擊右上角的「部署」按鈕，並填寫所需的網域名稱。部署完成後，您可以透過 `https://<your-domain>.zeabur.app` 存取您的 Dify 應用程式。

            ## 應用程式架構

            - Redis、PostgreSQL、MINIO 和 Webaviate 用於資料儲存和快取。
            - `api`、`worker`、`web`、`plugin_daemon` 和 `sandbox` 是 Dify 的微服務。
            - `nginx` 是 Dify 的閘道。它將微服務整合到單一主機。換句話說，**它是您 Dify 應用程式的入口點。**

            ## 配置

            有關可配置變數的資訊，請參考 <https://docs.dify.ai/getting-started/install-self-hosted/environments>，這些變數主要設定在 `api` 服務中。

            ### 上傳檔案大小限制

            預設上傳檔案大小限制為 15 MB。您可以透過修改位於 `/etc/nginx/nginx.conf` 中 `nginx` 服務的配置檔裡的 `client_max_body_size` 指令來更改此限制。該值應為帶有單位的字串（例如，`15M` 表示 15 MB）。

            此外，您可能需要在 `api` 服務的環境中設定 `UPLOAD_FILE_SIZE_LIMIT` 變數以與此值相符。確保此值與 `/etc/nginx/nginx.conf` 配置中的 `client_max_body_size` 指令相同（例如，`15M` 表示 15 MB）。

            ## 新增 Sandbox Python 需求

            - 在「Sandbox」服務的「設定」分頁中編輯 `dependencies/python-requirements.txt`。
