Skip to content

Instantly share code, notes, and snippets.

@Be1zebub
Last active August 31, 2024 14:45
Show Gist options
  • Save Be1zebub/9bfd5ae2a58196cb953781d3f2101d50 to your computer and use it in GitHub Desktop.
Save Be1zebub/9bfd5ae2a58196cb953781d3f2101d50 to your computer and use it in GitHub Desktop.
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-08-30T14:11:19+00:00",
"name": "nodejs minimal",
"author": "unknown@unknown.com",
"description": "a generic egg for nodejs",
"features": null,
"docker_images": {
"Nodejs 20": "ghcr.io\/parkervcp\/yolks:nodejs_20",
"Nodejs 19": "ghcr.io\/parkervcp\/yolks:nodejs_19",
"Nodejs 18": "ghcr.io\/parkervcp\/yolks:nodejs_18",
"Nodejs 17": "ghcr.io\/parkervcp\/yolks:nodejs_17",
"Nodejs 16": "ghcr.io\/parkervcp\/yolks:nodejs_16",
"Nodejs 14": "ghcr.io\/parkervcp\/yolks:nodejs_14",
"Nodejs 12": "ghcr.io\/parkervcp\/yolks:nodejs_12"
},
"file_denylist": [],
"startup": "if [ -f \/home\/container\/package.json ]; then \/usr\/local\/bin\/npm install; fi;\r\nif [[ \"${MAIN_FILE}\" == \"*.js\" ]]; then \/usr\/local\/bin\/node ${NODE_PRE_ARGS} \"\/home\/container\/${MAIN_FILE}\" ${NODE_POST_ARGS};\r\nelse \/usr\/local\/bin\/ts-node --esm ${NODE_PRE_ARGS} \"\/home\/container\/${MAIN_FILE}\" ${NODE_POST_ARGS}; fi",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Listening on\"\r\n}",
"logs": "{}",
"stop": "^^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ python python-dev libtool\r\n\r\necho -e \"updating npm. please wait...\"\r\nnpm install npm@latest -g\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\necho -e \"install complete\"\r\nexit 0",
"container": "node:18-bullseye-slim",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Main file",
"description": "The file that starts the app.\r\nCan be .js and .ts",
"env_variable": "MAIN_FILE",
"default_value": "index.js",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Pre args",
"description": "Any extra arguments for nodejs or ts-node",
"env_variable": "NODE_PRE_ARGS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:64",
"field_type": "text"
},
{
"name": "Post args",
"description": "Any extra arguments for nodejs or ts-node",
"env_variable": "NODE_POST_ARGS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:64",
"field_type": "text"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment