# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: n8n-v2
spec:
    description: n8n is a powerful workflow automation tool focused on deep data integration and visual process design.
    coverImage: https://pic.fmcat.top/AI/cover/cover_n8n_v2.webp
    icon: https://pic.fmcat.top/AI/icon/icon_n8n.webp
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: n8n Domain
          description: The domain for accessing your n8n application.
    tags:
        - Tool
        - Automation
        - n8n
    readme: |-
        # n8n

        version: 2.1.2

        n8n allows you to build flexible workflows focused on deep data integration. And with sharable templates and a user-friendly UI, the less technical people on your team can collaborate on them too. So you can build whatever you want — without stressing over budget.

        ## Usage

        This template allows for **one-click deployment**. Bind a domain and start using n8n to automate your workflows.

        For detailed v2.0 environment variable configuration, please refer to the official update documentation: https://docs.n8n.io/2-0-breaking-changes/#remove-pyodide-based-python-code-node-and-tool

        ## Security Configuration

        For enhanced security, n8n disables some nodes by default. You can manually add the `NODES_EXCLUDE` environment variable to control node access:
        - To enable all default-disabled nodes: Set `NODES_EXCLUDE` to `[]`
        - To enable only some disabled nodes: Set `NODES_EXCLUDE` to `["executeCommand","localFileTrigger"]` (example: only enable ExecuteCommand and LocalFileTrigger nodes)
    services:
        - name: n8n
          icon: https://pic.fmcat.top/AI/icon/icon_n8n.webp
          template: PREBUILT
          spec:
            source:
                image: n8nio/n8n:2.1.2
            ports:
                - id: web
                  port: 5678
                  type: HTTP
            volumes:
                - id: data
                  dir: /root/.n8n
            env:
                DB_SQLITE_POOL_SIZE:
                    default: "2"
                DB_SQLITE_VACUUM_ON_STARTUP:
                    default: "true"
                DB_TYPE:
                    default: sqlite
                GENERIC_TIMEZONE:
                    default: Asia/Shanghai
                N8N_BLOCK_ENV_ACCESS_IN_NODE:
                    default: "true"
                N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE:
                    default: "true"
                N8N_DEFAULT_BINARY_DATA_MODE:
                    default: filesystem
                N8N_DIAGNOSTICS_ENABLED:
                    default: "false"
                N8N_ENCRYPTION_KEY:
                    default: ${PASSWORD}
                N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS:
                    default: "false"
                N8N_GIT_NODE_DISABLE_BARE_REPOS:
                    default: "true"
                N8N_HOST:
                    default: ${ZEABUR_WEB_DOMAIN}
                N8N_RESTRICT_FILE_ACCESS_TO:
                    default: /root/.n8n-files
                N8N_RUNNERS_ENABLED:
                    default: "true"
                N8N_SKIP_AUTH_ON_OAUTH_CALLBACK:
                    default: "false"
                NODE_ENV:
                    default: production
                WEBHOOK_URL:
                    default: ${ZEABUR_WEB_URL}
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /healthz
          domainKey: PUBLIC_DOMAIN
localization:
    en-US:
        description: n8n is a powerful workflow automation tool focused on deep data integration and visual process design.
        readme: |
            # n8n

            Version: 2.1.2

            n8n is a powerful workflow automation platform specifically designed for deep data integration. Through its intuitive visual interface, you can easily build complex automation workflows. Whether it's data processing, API integration, or business process automation, n8n provides flexible solutions. With an extensive template library and user-friendly interface, every team member can participate in process design, collectively improving work efficiency without worrying about budget constraints.

            ## Usage

            This template supports **one-click deployment**. Simply bind a domain to start using n8n to automate your workflows.

            For detailed v2.0 environment variable configuration, please refer to the official update documentation: https://docs.n8n.io/2-0-breaking-changes/#remove-pyodide-based-python-code-node-and-tool

            ## Security Configuration

            For enhanced security, n8n disables some nodes by default. You can manually add the `NODES_EXCLUDE` environment variable to control node access:
            - To enable all default-disabled nodes: Set `NODES_EXCLUDE` to `[]`
            - To enable only some disabled nodes: Set `NODES_EXCLUDE` to `["executeCommand","localFileTrigger"]` (example: only enable ExecuteCommand and LocalFileTrigger nodes)
    zh-CN:
        description: n8n 是一个强大的工作流自动化工具，专注于深度数据集成和可视化流程设计。
        readme: |
            # n8n

            版本：2.1.2

            n8n 是一个功能强大的工作流自动化平台，专为深度数据集成而设计。它通过直观的可视化界面,让您能够轻松构建复杂的自动化工作流程。无论是数据处理、API集成还是业务流程自动化,n8n 都能提供灵活的解决方案。借助丰富的模板库和用户友好的界面,团队中的每个成员都能参与流程设计,共同提升工作效率,无需担心预算限制。

            ## 使用方式

            本模板支持**一键部署**,只需绑定域名即可开始使用 n8n 来自动化您的工作流程。

            详细的 v2.0 环境变量配置请前往官网查看更新文档：https://docs.n8n.io/2-0-breaking-changes/#remove-pyodide-based-python-code-node-and-tool

            ## 安全配置

            为了增强安全性,n8n 默认禁用了部分节点。您可以通过手动添加 `NODES_EXCLUDE` 环境变量来控制节点访问权限:
            - 启用所有被默认禁用的节点: 设置 `NODES_EXCLUDE` 为 `[]`
            - 只启用部分被禁用节点: 设置 `NODES_EXCLUDE` 为 `["executeCommand","localFileTrigger"]` (示例:只启用命令执行和本地文件触发器节点)
    zh-TW:
        description: n8n 是一個強大的工作流程自動化工具，專注於深度資料整合和視覺化流程設計。
        readme: |
            # n8n

            版本：2.1.2

            n8n 是一個功能強大的工作流程自動化平台，專為深度資料整合而設計。它透過直觀的視覺化介面,讓您能夠輕鬆建構複雜的自動化工作流程。無論是資料處理、API整合還是業務流程自動化,n8n 都能提供靈活的解決方案。借助豐富的範本庫和友善的使用者介面,團隊中的每個成員都能參與流程設計,共同提升工作效率,無需擔心預算限制。

            ## 使用方式

            本範本支援**一鍵部署**,只需綁定網域即可開始使用 n8n 來自動化您的工作流程。

            詳細的 v2.0 環境變數配置請前往官網查看更新文件：https://docs.n8n.io/2-0-breaking-changes/#remove-pyodide-based-python-code-node-and-tool

            ## 安全性配置

            為了增強安全性,n8n 預設禁用了部分節點。您可以透過手動添加 `NODES_EXCLUDE` 環境變數來控制節點存取權限:
            - 啟用所有被預設禁用的節點: 設定 `NODES_EXCLUDE` 為 `[]`
            - 只啟用部分被禁用節點: 設定 `NODES_EXCLUDE` 為 `["executeCommand","localFileTrigger"]` (示例:只啟用命令執行和本地檔案觸發器節點)
