|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 40 行未改动
|
|
4
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/15/download/egg-reposilite.json",
|
|
5
|
|
"version": "PTDL_v2"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-02T14:40:54+00:00",
|
|
8
|
|
"name": "Reposilite",
|
|
9
|
|
"author": "mk@kcra.me",
|
|
10
|
|
"description": "Lightweight and easy-to-use repository management software dedicated for Maven based artifacts in the JVM ecosystem.",
|
|
11
|
|
"features": null,
|
|
12
|
|
"docker_images": {
|
|
13
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_11": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_11",
|
|
14
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_16": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_16",
|
|
15
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_17": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_17",
|
|
16
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_21": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_21",
|
|
17
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_8": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_8"
|
|
18
|
|
},
|
|
19
|
|
"file_denylist": [],
|
|
20
|
|
"startup": "java -Xmx{{SERVER_MEMORY}}M -Dreposilite.port={{SERVER_PORT}} -jar reposilite.jar --port {{SERVER_PORT}}",
|
|
21
|
|
"config": {
|
|
22
|
|
"files": "{}",
|
|
23
|
|
"logs": "{}",
|
|
24
|
|
"startup": "{\r\n \"done\": \"Done (\"\r\n}",
|
|
25
|
|
"stop": "stop"
|
|
26
|
|
},
|
|
27
|
|
"scripts": {
|
|
28
|
|
"installation": {
|
|
29
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
30
|
|
"entrypoint": "bash",
|
|
31
|
|
"script": "#!/bin/sh\r\n# Switch to mounted directory\r\ncd /mnt/server\r\n# Find latest Reposilite version, if needed\r\nif [ \"$REPOSILITE_VERSION\" == \"latest\" ]; then\r\n REPOSILITE_VERSION=$(grep -oPm1 \"(?<=<latest>)[^<]+\" <<< \"$(curl -s https://maven.reposilite.com/releases/com/reposilite/reposilite/maven-metadata.xml)\")\r\nfi\r\n# Check if -all suffixed jar is available\r\nstatus_code=$(curl --write-out '%{http_code}' -X HEAD -s -o /dev/null https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}-all.jar)\r\n# Download new Reposilite\r\nif [ \"$status_code\" == 200 ]; then\r\n curl -o reposilite.jar https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}-all.jar\r\nelse\r\n curl -o reposilite.jar https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}.jar\r\nfi"
|
|
32
|
|
}
|
|
33
|
|
},
|
|
34
|
|
"variables": [
|
|
35
|
|
{
|
|
36
|
|
"name": "Reposilite version",
|
|
37
|
|
"description": "The version of Reposilite.",
|
|
38
|
|
"env_variable": "REPOSILITE_VERSION",
|
|
39
|
|
"default_value": "latest",
|
|
40
|
|
"user_viewable": true,
|
|
41
|
|
"user_editable": true,
|
|
42
|
|
"rules": "required|string",
|
|
43
|
|
"field_type": "text"
|
|
44
|
|
}
|
|
45
|
|
]
|
|
46
|
|
}
|