mirror of
https://github.com/darksaid98/ptero-nginx-egg.git
synced 2026-12-02 22:22:53 +00:00
Add files via upload
Big update, Added the option to install wordpress, and you can now install composer packages by specifying them Egg has also been renamed from nginx egg to webhost egg
This commit is contained in:
1 parent
ce7de3872f
commit
29aae5b973
8 files changed
+100
-21
No files matched your search
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2022-06-24T09:34:21+02:00",
|
||||
"name": "WebHost Egg",
|
||||
"author": "[email protected]",
|
||||
"description": "An egg to host any Website.\r\nit also has composer, just specify your packages in the packages box, and it will install the packages when you start the server, it also has wordpress, just turn on the slider when you make the server, and wordpress will get installed for you\r\n\r\nSigma Productions 2022",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/finnie2006\/nginx-ptero": "ghcr.io\/finnie2006\/nginx-ptero"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "{{STARTUP_CMD}}; if [[ ! -z ${COMPOSER_MODULES} ]]; then composer require ${COMPOSER_MODULES} --working-dir=\/home\/containe\r\nr\/webroot; fi;",
|
||||
"config": {
|
||||
"files": "{\r\n \"nginx\/conf.d\/default.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \" listen \": \" listen {{server.build.default.port}};\"\r\n }\r\n }\r\n}",
|
||||
"startup": "{\r\n \"done\": \"\",\r\n \"userInteraction\": []\r\n}",
|
||||
"logs": "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/ash\r\ncd \/mnt\/server\r\napk --update add git\r\n\r\n# cloning repo with nginx and php files\r\ngit clone https:\/\/github.com\/finnie2006\/ptero-nginx .\/temp\r\n\r\ncp -r .\/temp\/nginx \/mnt\/server\/\r\ncp -r .\/temp\/php-fpm \/mnt\/server\/\r\ncp -r .\/temp\/webroot \/mnt\/server\/\r\ncp .\/temp\/start.sh \/mnt\/server\/\r\nchmod +x \/mnt\/server\/start.sh\r\nrm -rf .\/temp\r\nif [ \"${WORDPRESS}\" == \"false\" ] || [ \"${WORDPRESS}\" == \"0\" ]; then\r\necho -e \"Install complete go to http:\/\/ip:port\/\"\r\nfi\r\n\r\n\r\n#wordpress\r\nif [ \"${WORDPRESS}\" == \"true\" ] || [ \"${WORDPRESS}\" == \"1\" ]; then\r\n echo -e \"Installing wordpress\"\r\n cd \/mnt\/server\/webroot\r\n wget http:\/\/wordpress.org\/latest.tar.gz\r\n tar xzf latest.tar.gz\r\n mv wordpress\/* .\r\n rm -rf wordpress latest.tar.gz\r\n echo -e \"Install complete go to http:\/\/ip:port\/wp-admin \"\r\n exit 0\r\n \r\n fi",
|
||||
"container": "alpine:latest",
|
||||
"entrypoint": "ash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Startup Command",
|
||||
"description": "The command to startup the egg \r\n(Do not change if you do not know what you are doing!)",
|
||||
"env_variable": "STARTUP_CMD",
|
||||
"default_value": ".\/start.sh",
|
||||
"user_viewable": true,
|
||||
"user_editable": true,
|
||||
"rules": "present",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Wordpress",
|
||||
"description": "Enable or disable Wordpress\r\n\r\n0 = false (default)\r\n1 = true",
|
||||
"env_variable": "WORDPRESS",
|
||||
"default_value": "false",
|
||||
"user_viewable": true,
|
||||
"user_editable": true,
|
||||
"rules": "required|boolean",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Composer modules",
|
||||
"description": "Specify the composer modules you want to install, separate the packages with a space\r\nyou can always add packages later..",
|
||||
"env_variable": "COMPOSER_MODULES",
|
||||
"default_value": "",
|
||||
"user_viewable": true,
|
||||
"user_editable": true,
|
||||
"rules": "nullable|string",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user