-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathegg-snailycad.json
92 lines (92 loc) · 5.76 KB
/
egg-snailycad.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-11-25T11:53:38-06:00",
"name": "SnailyCAD",
"author": "mail+petroegg@afkhosting.win",
"description": "A Pterodactyl version of SnailyCad v4.\r\nSnailyCAD is an open source Computer Aided Dispatch (CAD) for FiveM, this is a web based integration for communities who love police roleplaying and dispatching.\r\nMore info at https:\/\/snailycad.org\/",
"features": null,
"docker_images": {
"Nodejs 20": "ghcr.io\/theafkgamer10\/snailycadpterodactyl:latest"
},
"file_denylist": [],
"startup": "pnpm update && pnpm install && node scripts\/copy-env.mjs --client --api && pnpm run build > buildout.txt && pnpm run start",
"config": {
"files": "{\r\n \".env\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"CORS_ORIGIN_URL\": \"CORS_ORIGIN_URL=\\\"{{server.build.env.CLIENT_URL}}\\\"\",\r\n \"NEXT_PUBLIC_CLIENT_URL\": \"NEXT_PUBLIC_CLIENT_URL=\\\"{{server.build.env.CLIENT_URL}}\\\"\",\r\n \"NEXT_PUBLIC_PROD_ORIGIN\": \"NEXT_PUBLIC_PROD_ORIGIN=\\\"{{server.build.env.API_URL}}\/v1\\\"\",\r\n \"DOMAIN\": \"DOMAIN=\\\"{{server.build.env.DOMAIN}}\\\"\",\r\n \"SECURE_COOKIES_FOR_IFRAME\": \"SECURE_COOKIES_FOR_IFRAME=\\\"{{server.build.env.SECURE_COOKIES_FOR_IFRAME}}\\\"\",\r\n \"PORT_API\": \"PORT_API={{server.build.env.API_PORT}}\",\r\n \"PORT_CLIENT\": \"PORT_CLIENT={{server.build.env.CLIENT_PORT}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"SnailyCADv4 is running with version\"\r\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "apt update\r\napt install -y git curl wget\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nrm -f snailycadptero.cjs\r\nrm -rf snaily-cadv4\r\nwget https:\/\/raw.githubusercontent.com\/TheAFKGamer10\/SnailyCADPterodactyl\/main\/snailycadptero.cjs\r\nnode snailycadptero.cjs $CLIENT_URL $API_URL $CLIENT_PORT $API_PORT $DOMAIN $SECURE_COOKIES_FOR_IFRAME\r\n\r\necho -e \"Install Complete\"\r\nexit 0",
"container": "node:18",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "CLIENT URL",
"description": "The URL\/IP to where the CAD is hosted at, see examples below.\r\n\r\nIn support, this will be called the client.\r\nValid Examples:\r\nhttps:\/\/cad.example.com - subdomain\r\nhttps:\/\/mycad.com - Top level domain\r\nhttp:\/\/192.168.0.190:3000 - LAN IP-address\r\nhttp:\/\/83.39.20.30:3000 - WAN IP-address\r\n\r\nInvalid Examples:\r\nlocalhost - will simply not work.\r\ncad.example.com - missing https:\/\/ or http:\/\/.\r\nhttp:\/\/192.168.x.x:3000 - default URL, will not work.",
"env_variable": "CLIENT_URL",
"default_value": "http:\/\/localhost\/",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|url",
"field_type": "text"
},
{
"name": "API URL",
"description": "The URL\/IP to where the API is hosted at, see examples below.\r\n\r\nIn support, this will be called the API.\r\nValid Examples:\r\nhttps:\/\/cad-api.example.com\/v1 - subdomain\r\nhttp:\/\/192.168.0.190:8080\/v1 - LAN IP-address\r\nhttp:\/\/83.39.20.30:8080\/v1 - WAN IP-address\r\n\r\nInvalid Examples:\r\nlocalhost - will simply not work.\r\ncad-api.example.com - missing https:\/\/ or http:\/\/.\r\nhttp:\/\/192.168.x.x:8080\/v1 - default URL, will not work.",
"env_variable": "API_URL",
"default_value": "http:\/\/localhost\/",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|url",
"field_type": "text"
},
{
"name": "CLIENT PORT",
"description": "The port where the client should run on.",
"env_variable": "CLIENT_PORT",
"default_value": "39600",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:5",
"field_type": "text"
},
{
"name": "API PORT",
"description": "The port where the API should run on.",
"env_variable": "API_PORT",
"default_value": "39600",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:5",
"field_type": "text"
},
{
"name": "DOMAIN",
"description": "The domain you might be using. (Optional, however, recommended)\r\n\r\nYou may only set this when using a domain name.\r\nThis must be the TLD of the domain. (e.g.: example.com or mycommunity.com)\r\n\r\nValid Examples:\r\nexample.com\r\nexample.com:3000 - a port can only be used when using a domain without SSL (https).\r\n\r\nInvalid Examples:\r\ncad.example.com - subdomain cannot be used. must be top level domain\r\n192.38.33.29 - an IP is not a domain",
"env_variable": "DOMAIN",
"default_value": "afkhosting.win",
"user_viewable": true,
"user_editable": true,
"rules": "string|max:36",
"field_type": "text"
},
{
"name": "SECURE COOKIES",
"description": "Only enable when uterly required. (This may not work all the time; work-in-progress.)",
"env_variable": "SECURE_COOKIES_FOR_IFRAME",
"default_value": "false",
"user_viewable": true,
"user_editable": true,
"rules": "string|max:5|in:true,false",
"field_type": "text"
}
]
}