mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-15 06:27:23 +08:00
49 lines
2.4 KiB
JSON
49 lines
2.4 KiB
JSON
{
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
"meta": {
|
|
"version": "PTDL_v1",
|
|
"update_url": null
|
|
},
|
|
"exported_at": "2021-01-09T09:08:57+01:00",
|
|
"name": "Code-Server",
|
|
"author": "mario.franze@gmail.com",
|
|
"description": "Run VS Code on any machine anywhere and access it in the browser.",
|
|
"features": null,
|
|
"images": [
|
|
"quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-14"
|
|
],
|
|
"startup": "sh .local\/lib\/code-server-3.8.0\/bin\/code-server --bind-addr {{IP}}:{{SERVER_PORT}}",
|
|
"config": {
|
|
"files": "{\r\n \".config\/code-server\/config.yaml\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"password\": \"password: {{server.build.env.PASSWORD}}\",\r\n \"bind-addr\": \"bind-addr: {{server.build.env.IP}}:{{server.build.default.port}}\",\r\n \"auth\": \"auth: password\",\r\n \"cert\": \"cert: false\"\r\n }\r\n }\r\n}",
|
|
"startup": "{\r\n \"done\": \"info HTTP server listening on\"\r\n}",
|
|
"logs": "{}",
|
|
"stop": "^C"
|
|
},
|
|
"scripts": {
|
|
"installation": {
|
|
"script": "apt update\r\napt install curl sudo -y\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nmkdir -p \/mnt\/server\/.local\/lib \/mnt\/server\/.local\/bin \/mnt\/server\/.config\r\ncurl -fL https:\/\/github.com\/cdr\/code-server\/releases\/download\/v3.8.0\/code-server-3.8.0-linux-amd64.tar.gz \\\r\n | tar -C \/mnt\/server\/.local\/lib -xz\r\nmv \/mnt\/server\/.local\/lib\/code-server-3.8.0-linux-amd64 \/mnt\/server\/.local\/lib\/code-server-3.8.0\r\nPATH=\"\/mnt\/server\/.local\/bin:$PATH\"",
|
|
"container": "debian:buster-slim",
|
|
"entrypoint": "bash"
|
|
}
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "Password",
|
|
"description": "Passwort to login to your Code-Server instance",
|
|
"env_variable": "PASSWORD",
|
|
"default_value": "changeme",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string|max:32"
|
|
},
|
|
{
|
|
"name": "IP",
|
|
"description": "IP where the interface can be accessed",
|
|
"env_variable": "IP",
|
|
"default_value": "0.0.0.0",
|
|
"user_viewable": true,
|
|
"user_editable": false,
|
|
"rules": "required|string|max:15"
|
|
}
|
|
]
|
|
} |