|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 71 行未改动
|
|
4
|
|
"version": "PLCN_v1",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/2/download/egg-code-server.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2025-02-16T10:37:18+00:00",
|
|
8
|
|
"name": "Code-Server",
|
|
9
|
|
"author": "mario.franze@gmail.com",
|
|
10
|
|
"uuid": "45f8a4a1-92e4-47cd-ab78-e7f0fe7e7dee",
|
|
11
|
|
"description": "Run VS Code on any machine anywhere and access it in the browser.",
|
|
12
|
|
"features": [],
|
|
13
|
|
"docker_images": {
|
|
14
|
|
"Java 11": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:java_11",
|
|
15
|
|
"Java 17": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:java_17",
|
|
16
|
|
"Java 21": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:java_21",
|
|
17
|
|
".net 6": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:dotnet_6",
|
|
18
|
|
".net 7": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:dotnet_7",
|
|
19
|
|
".net 8": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:dotnet_8",
|
|
20
|
|
"Mono": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:mono_latest",
|
|
21
|
|
"Erlang 26": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:erlang_26",
|
|
22
|
|
"Python 3.11": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:python_3.11",
|
|
23
|
|
"Python 3.12": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:python_3.12",
|
|
24
|
|
"Python 3.13": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:python_3.13",
|
|
25
|
|
"Bun": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:bun_latest",
|
|
26
|
|
"Dart": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:dart_stable",
|
|
27
|
|
"Go 1.23": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:go_1.23",
|
|
28
|
|
"Nodejs 22": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:nodejs_22",
|
|
29
|
|
"Nodejs 23": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:nodejs_23",
|
|
30
|
|
"Elixir": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:elixir_latest",
|
|
31
|
|
"Rust": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:rust_latest"
|
|
32
|
|
},
|
|
33
|
|
"file_denylist": [],
|
|
34
|
|
"startup": "sh .local/lib/code-server-{{VERSION}}/bin/code-server",
|
|
35
|
|
"config": {
|
|
36
|
|
"files": "{\r\n \".config/code-server/config.yaml\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"password\": \"password: {{server.environment.PASSWORD}}\",\r\n \"bind-addr\": \"bind-addr: 0.0.0.0:{{server.allocations.default.port}}\"\r\n }\r\n }\r\n}",
|
|
37
|
|
"startup": "{\r\n \"done\": \"HTTP server listening on\"\r\n}",
|
|
38
|
|
"logs": "{}",
|
|
39
|
|
"stop": "^^C"
|
|
40
|
|
},
|
|
41
|
|
"scripts": {
|
|
42
|
|
"installation": {
|
|
43
|
|
"script": "#!/bin/bash\r\n\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"amd64\" || echo \"arm64\")\r\nMATCH=linux-${ARCH}\r\n# Create initial directories\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\necho ${ARCH}\r\necho ${MATCH}\r\n# Create needed directories\r\nmkdir -p /mnt/server/.local/lib /mnt/server/.local/bin /mnt/server/.config/code-server /mnt/server/projects\r\n\r\n# Change permission of projects directory so it can be accessed by code-server\r\nchmod 777 /mnt/server/projects\r\ntouch \"/mnt/server/projects/PLACE YOUR PROJECTS HERE\"\r\n\r\n# Check for available versions. Defaults to latest if no valid version is found.\r\nLATEST_JSON=$(curl --silent \"https://api.github.com/repos/coder/code-server/releases/latest\")\r\nRELEASES=$(curl --silent \"https://api.github.com/repos/coder/code-server/releases\")\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 \"v${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"v${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"v${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\n# Download the given Version and extract it\r\necho \"Downloading $DOWNLOAD_URL\"\r\ncurl -fL $DOWNLOAD_URL | tar -C /mnt/server/.local/lib -xz\r\nmv /mnt/server/.local/lib/code-server-*linux-${ARCH} /mnt/server/.local/lib/code-server-${VERSION}\r\n\r\nPATH=\"/mnt/server/.local/bin:$PATH\"\r\necho \"password: changeme\r\nbind-addr: 0.0.0.0\r\nauth: password\r\ncert: false\" > /mnt/server/.config/code-server/config.yaml\r\n\r\necho \"Install complete\"",
|
|
44
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
45
|
|
"entrypoint": "bash"
|
|
46
|
|
}
|
|
47
|
|
},
|
|
48
|
|
"variables": [
|
|
49
|
|
{
|
|
50
|
|
"sort": 1,
|
|
51
|
|
"name": "Password",
|
|
52
|
|
"description": "Password to login to your Code-Server instance",
|
|
53
|
|
"env_variable": "PASSWORD",
|
|
54
|
|
"default_value": "changeme",
|
|
55
|
|
"user_viewable": true,
|
|
56
|
|
"user_editable": true,
|
|
57
|
|
"rules": [
|
|
58
|
|
"required",
|
|
59
|
|
"string",
|
|
60
|
|
"max:32"
|
|
61
|
|
]
|
|
62
|
|
},
|
|
63
|
|
{
|
|
64
|
|
"sort": 2,
|
|
65
|
|
"name": "Version",
|
|
66
|
|
"description": "Version for (re)installation such as 3.9.3. Defaults to latest version if no valid version is provided",
|
|
67
|
|
"env_variable": "VERSION",
|
|
68
|
|
"default_value": "latest",
|
|
69
|
|
"user_viewable": true,
|
|
70
|
|
"user_editable": true,
|
|
71
|
|
"rules": [
|
|
72
|
|
"string",
|
|
73
|
|
"max:20"
|
|
74
|
|
]
|
|
75
|
|
}
|
|
76
|
|
]
|
|
77
|
|
}
|