-
Notifications
You must be signed in to change notification settings - Fork 2
/
egg-caddy.json
39 lines (39 loc) · 1.98 KB
/
egg-caddy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"meta": {
"version": "PTDL_v2"
},
"name": "Caddy Server",
"author": "Razboy20@razboy.dev",
"description": "Runs a Caddy Server through pterodactyl.",
"features": null,
"docker_images": {
"PHP 8": "ghcr.io/razboy20/pterodactyl-caddy:php8",
"PHP 7": "ghcr.io/razboy20/pterodactyl-caddy:main"
},
"file_denylist": [],
"startup": "{{STARTUP_CMD}}",
"config": {
"files": "{\r\n \"caddy\/Caddyfile\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"\\thttp_port <ptero_http_replace>\": \"\\thttp_port {{server.build.default.port}}\",\r\n \"\\thttps_port <ptero_https_replace>\": \"\\thttps_port {{server.build.default.port}}\",\r\n \"example.com {\": \":{{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\n\r\ncd /mnt/server\r\n\r\napk --no-cache add curl git\r\n\r\ngit clone https://github.com/razboy20/pterodactyl-caddy ./temp\r\n\r\ncp -r ./temp/caddy /mnt/server/\r\ncp -r ./temp/public /mnt/server/\r\ncp -r ./temp/php-fpm /mnt/server/\r\ncp ./temp/start.sh /mnt/server\r\ncurl \"https://caddyserver.com/api/download?os=linux&arch=amd64&idempotency=33572405766393\" -s --output /mnt/server/caddy-server\r\n\r\nchmod +x /mnt/server/caddy-server\r\nchmod +x /mnt/server/start.sh\r\n\r\nrm -rf ./temp",
"container": "alpine:3.20",
"entrypoint": "ash"
}
},
"variables": [
{
"name": "Startup Command",
"description": "The command to start",
"env_variable": "STARTUP_CMD",
"default_value": "./start.sh",
"user_viewable": 1,
"user_editable": 1,
"rules": "present"
}
]
}