Meilisearch v1.0.6

飒爽师叔 · 2026-06-30 09:59

更新日志

[AI翻译] 描述、说明、JSON描述、变量

版本内容

{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
    "meta": {
        "version": "PTDL_v2",
        "update_url": "https://eggs.pterodactyl.top/eggs/11/download/egg-meilisearch.json"
    },
    "exported_at": "2024-06-02T14:40:52+00:00",
    "name": "Meilisearch",
    "author": "josdekurk@gmail.com",
    "uuid": "9e9ce9be-10a7-47a3-8e54-2528145a3bf3",
    "description": "一款闪电般快速的搜索引擎,能轻松融入你的应用、网站和工作流程。",
    "features": null,
    "docker_images": {
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
    },
    "file_denylist": [],
    "startup": "./meilisearch --http-addr \"0.0.0.0:{{SERVER_PORT}}\"  --max-indexing-memory=\"{{SERVER_MEMORY}}mb\" $([ \"$NO_ANALYTICS\" -eq 1 ] && echo \"--no-analytics\")",
    "config": {
        "files": "{}",
        "startup": "{\r\n    \"done\": \"Actix runtime found; starting in Actix runtime\"\r\n}",
        "logs": "{}",
        "stop": "^^C"
    },
    "scripts": {
        "installation": {
            "script": "#!/bin/bash\r\n\r\n## get release info and download links\r\nLATEST_JSON=$(curl --silent \"https://api.github.com/repos/meilisearch/meilisearch/releases/latest\")\r\nRELEASES=$(curl --silent \"https://api.github.com/repos/meilisearch/meilisearch/releases\")\r\nMATCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"linux-amd64\" || echo \"linux-aarch64\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n    if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n    else\r\n        echo -e \"defaulting to latest release\"\r\n        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n    fi\r\nfi\r\n\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\n## Config file\r\nFILE=/mnt/server/config.toml\r\nif [ -f \"$FILE\" ]; then\r\n    echo \"Config file exits\"\r\nelse \r\n    echo \"Config does not exist. Making one\"\r\n    curl -sSL -o config.toml https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml\r\nfi\r\n\r\ncurl -sSL -o meilisearch ${DOWNLOAD_URL}\r\nchmod +x meilisearch\r\n\r\n# Make the needed directory's \r\nmkdir -p /mnt/server/dumps\r\nmkdir -p /mnt/server/data.ms\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
            "container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
            "entrypoint": "bash"
        }
    },
    "variables": [
        {
            "name": "主密钥",
            "description": "在生产环境中,必须使用至少16字节的主密钥  \n设置实例的主密钥,自动保护除 GET /health 之外的所有路由。这意味着你需要有效的API密钥才能访问所有其他端点。",
            "env_variable": "MEILI_MASTER_KEY",
            "default_value": "",
            "user_viewable": true,
            "user_editable": true,
            "rules": "nullable|string|max:64",
            "sort": null,
            "field_type": "text"
        },
        {
            "name": "环境",
            "description": "配置实例的环境。值必须为 production 或 development。",
            "env_variable": "MEILI_ENV",
            "default_value": "development",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|in:development,production",
            "sort": null,
            "field_type": "text"
        },
        {
            "name": "禁用分析",
            "description": "提供时,禁用 Meilisearch 的内置遥测功能。",
            "env_variable": "NO_ANALYTICS",
            "default_value": "0",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|boolean",
            "sort": null,
            "field_type": "text"
        },
        {
            "name": "转储目录",
            "description": "设置 Meilisearch 创建转储文件的目录。",
            "env_variable": "MEILI_DUMP_DIR",
            "default_value": "/home/container/dumps",
            "user_viewable": true,
            "user_editable": false,
            "rules": "required|string|max:64",
            "sort": null,
            "field_type": "text"
        },
        {
            "name": "DB PATH",
            "description": "指定数据库文件创建和检索的位置。",
            "env_variable": "MEILI_DB_PATH",
            "default_value": "/home/container/data.ms",
            "user_viewable": true,
            "user_editable": false,
            "rules": "required|string|max:64",
            "sort": null,
            "field_type": "text"
        },
        {
            "name": "日志级别",
            "description": "定义 Meilisearch 日志中应包含多少细节。",
            "env_variable": "MEILI_LOG_LEVEL",
            "default_value": "INFO",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|in:INFO,WARN,ERROR,TRACE",
            "sort": null,
            "field_type": "text"
        },
        {
            "name": "配置路径",
            "description": "指定启动时加载的配置文件的位置。",
            "env_variable": "MEILI_CONFIG_FILE_PATH",
            "default_value": "/home/container/config.toml",
            "user_viewable": true,
            "user_editable": false,
            "rules": "required|string",
            "sort": null,
            "field_type": "text"
        },
        {
            "name": "最大线程数",
            "description": "设置 Meilisearch 在索引过程中可以使用的最大线程数。",
            "env_variable": "MEILI_MAX_INDEXING_THREADS",
            "default_value": "2",
            "user_viewable": true,
            "user_editable": false,
            "rules": "required|integer",
            "sort": null,
            "field_type": "text"
        }
    ]
}