mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-27 17:02:55 +08:00
46 lines
2.1 KiB
JSON
46 lines
2.1 KiB
JSON
|
{
|
||
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||
|
"meta": {
|
||
|
"version": "PTDL_v1"
|
||
|
},
|
||
|
"exported_at": "2018-01-21T17:01:31-06:00",
|
||
|
"name": "Terraria Server (TShock)",
|
||
|
"author": "support@pterodactyl.io",
|
||
|
"description": "TShock is a server modification for Terraria, written in C#, and based upon the Terraria Server API. It uses JSON for configuration management, and offers several features not present in the Terraria Server normally.",
|
||
|
"image": "quay.io\/pterodactyl\/core:mono",
|
||
|
"startup": null,
|
||
|
"config": {
|
||
|
"files": "{\"tshock\/config.json\":{\"parser\": \"json\", \"find\":{\"ServerPort\": \"{{server.build.default.port}}\", \"MaxSlots\": \"{{server.build.env.MAX_SLOTS}}\"}}}",
|
||
|
"startup": "{\"done\": \"Type 'help' for a list of commands\", \"userInteraction\": []}",
|
||
|
"logs": "{\"custom\": false, \"location\": \"ServerLog.txt\"}",
|
||
|
"stop": "exit"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"installation": {
|
||
|
"script": "#!\/bin\/ash\n# TShock Installation Script\n#\n# Server Files: \/mnt\/server\napk update\napk add curl unzip\n\ncd \/tmp\n\ncurl -sSLO https:\/\/github.com\/NyxStudios\/TShock\/releases\/download\/v${T_VERSION}\/tshock_${T_VERSION}.zip\n\nunzip -o tshock_${T_VERSION}.zip -d \/mnt\/server",
|
||
|
"container": "alpine:3.9",
|
||
|
"entrypoint": "ash"
|
||
|
}
|
||
|
},
|
||
|
"variables": [
|
||
|
{
|
||
|
"name": "TShock Version",
|
||
|
"description": "Which version of TShock to install and use.",
|
||
|
"env_variable": "T_VERSION",
|
||
|
"default_value": "4.3.22",
|
||
|
"user_viewable": 1,
|
||
|
"user_editable": 1,
|
||
|
"rules": "required|regex:\/^([0-9_\\.-]{5,10})$\/"
|
||
|
},
|
||
|
{
|
||
|
"name": "Maximum Slots",
|
||
|
"description": "Total number of slots to allow on the server.",
|
||
|
"env_variable": "MAX_SLOTS",
|
||
|
"default_value": "20",
|
||
|
"user_viewable": 1,
|
||
|
"user_editable": 0,
|
||
|
"rules": "required|numeric|digits_between:1,3"
|
||
|
}
|
||
|
]
|
||
|
}
|