|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 115 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/11/download/egg-meilisearch.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-02T14:40:52+00:00",
|
|
8
|
|
"name": "Meilisearch",
|
|
9
|
|
"author": "josdekurk@gmail.com",
|
|
10
|
|
"uuid": "9e9ce9be-10a7-47a3-8e54-2528145a3bf3",
|
|
11
|
|
"description": "A lightning-fast search engine that fits effortlessly into your apps, websites, and workflow.",
|
|
12
|
|
"features": null,
|
|
13
|
|
"docker_images": {
|
|
14
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
|
|
15
|
|
},
|
|
16
|
|
"file_denylist": [],
|
|
17
|
|
"startup": "./meilisearch --http-addr \"0.0.0.0:{{SERVER_PORT}}\" --max-indexing-memory=\"{{SERVER_MEMORY}}mb\" $([ \"$NO_ANALYTICS\" -eq 1 ] && echo \"--no-analytics\")",
|
|
18
|
|
"config": {
|
|
19
|
|
"files": "{}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"Actix runtime found; starting in Actix runtime\"\r\n}",
|
|
21
|
|
"logs": "{}",
|
|
22
|
|
"stop": "^^C"
|
|
23
|
|
},
|
|
24
|
|
"scripts": {
|
|
25
|
|
"installation": {
|
|
26
|
|
"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 \"-----------------------------------------\"",
|
|
27
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
28
|
|
"entrypoint": "bash"
|
|
29
|
|
}
|
|
30
|
|
},
|
|
31
|
|
"variables": [
|
|
32
|
|
{
|
|
33
|
|
"name": "Master key",
|
|
34
|
|
"description": "In production, a Master key of at least 16 bytes is mandatory\r\nSets the instance's master key, automatically protecting all routes except GET /health. This means you will need a valid API key to access all other endpoints.",
|
|
35
|
|
"env_variable": "MEILI_MASTER_KEY",
|
|
36
|
|
"default_value": "",
|
|
37
|
|
"user_viewable": true,
|
|
38
|
|
"user_editable": true,
|
|
39
|
|
"rules": "nullable|string|max:64",
|
|
40
|
|
"sort": null,
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "Environment",
|
|
45
|
|
"description": "Configures the instance's environment. Value must be either production or development.",
|
|
46
|
|
"env_variable": "MEILI_ENV",
|
|
47
|
|
"default_value": "development",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": true,
|
|
50
|
|
"rules": "required|string|in:development,production",
|
|
51
|
|
"sort": null,
|
|
52
|
|
"field_type": "text"
|
|
53
|
|
},
|
|
54
|
|
{
|
|
55
|
|
"name": "Disable analytics",
|
|
56
|
|
"description": "Deactivates Meilisearch's built-in telemetry when provided.",
|
|
57
|
|
"env_variable": "NO_ANALYTICS",
|
|
58
|
|
"default_value": "0",
|
|
59
|
|
"user_viewable": true,
|
|
60
|
|
"user_editable": true,
|
|
61
|
|
"rules": "required|boolean",
|
|
62
|
|
"sort": null,
|
|
63
|
|
"field_type": "text"
|
|
64
|
|
},
|
|
65
|
|
{
|
|
66
|
|
"name": "Dumps dir",
|
|
67
|
|
"description": "Sets the directory where Meilisearch will create dump files.",
|
|
68
|
|
"env_variable": "MEILI_DUMP_DIR",
|
|
69
|
|
"default_value": "/home/container/dumps",
|
|
70
|
|
"user_viewable": true,
|
|
71
|
|
"user_editable": false,
|
|
72
|
|
"rules": "required|string|max:64",
|
|
73
|
|
"sort": null,
|
|
74
|
|
"field_type": "text"
|
|
75
|
|
},
|
|
76
|
|
{
|
|
77
|
|
"name": "DB PATH",
|
|
78
|
|
"description": "Designates the location where database files will be created and retrieved.",
|
|
79
|
|
"env_variable": "MEILI_DB_PATH",
|
|
80
|
|
"default_value": "/home/container/data.ms",
|
|
81
|
|
"user_viewable": true,
|
|
82
|
|
"user_editable": false,
|
|
83
|
|
"rules": "required|string|max:64",
|
|
84
|
|
"sort": null,
|
|
85
|
|
"field_type": "text"
|
|
86
|
|
},
|
|
87
|
|
{
|
|
88
|
|
"name": "Log level",
|
|
89
|
|
"description": "Defines how much detail should be present in Meilisearch's logs.",
|
|
90
|
|
"env_variable": "MEILI_LOG_LEVEL",
|
|
91
|
|
"default_value": "INFO",
|
|
92
|
|
"user_viewable": true,
|
|
93
|
|
"user_editable": true,
|
|
94
|
|
"rules": "required|string|in:INFO,WARN,ERROR,TRACE",
|
|
95
|
|
"sort": null,
|
|
96
|
|
"field_type": "text"
|
|
97
|
|
},
|
|
98
|
|
{
|
|
99
|
|
"name": "Config Path",
|
|
100
|
|
"description": "Designates the location of the configuration file to load at launch.",
|
|
101
|
|
"env_variable": "MEILI_CONFIG_FILE_PATH",
|
|
102
|
|
"default_value": "/home/container/config.toml",
|
|
103
|
|
"user_viewable": true,
|
|
104
|
|
"user_editable": false,
|
|
105
|
|
"rules": "required|string",
|
|
106
|
|
"sort": null,
|
|
107
|
|
"field_type": "text"
|
|
108
|
|
},
|
|
109
|
|
{
|
|
110
|
|
"name": "Max threads",
|
|
111
|
|
"description": "Sets the maximum number of threads Meilisearch can use during indexing",
|
|
112
|
|
"env_variable": "MEILI_MAX_INDEXING_THREADS",
|
|
113
|
|
"default_value": "2",
|
|
114
|
|
"user_viewable": true,
|
|
115
|
|
"user_editable": false,
|
|
116
|
|
"rules": "required|integer",
|
|
117
|
|
"sort": null,
|
|
118
|
|
"field_type": "text"
|
|
119
|
|
}
|
|
120
|
|
]
|
|
121
|
|
}
|