|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 60 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/6/download/egg-gitea.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-02T14:40:59+00:00",
|
|
8
|
|
"name": "Gitea",
|
|
9
|
|
"author": "mario.franze@gmail.com",
|
|
10
|
|
"uuid": "f924edb1-eabc-4e39-b19d-edf548a043c8",
|
|
11
|
|
"description": "Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.",
|
|
12
|
|
"features": null,
|
|
13
|
|
"docker_images": {
|
|
14
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
|
|
15
|
|
},
|
|
16
|
|
"file_denylist": [],
|
|
17
|
|
"startup": "./gitea web -p {{SERVER_PORT}} -c ./app.ini",
|
|
18
|
|
"config": {
|
|
19
|
|
"files": "{\r\n \"custom/app.ini\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"DISABLE_SSH\": \"DISABLE_SSH: {{server.build.env.DISABLE_SSH}}\",\r\n \"SSH_PORT\": \"SSH_PORT: {{server.build.env.SSH_PORT}}\"\r\n }\r\n }\r\n}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"Listen: \"\r\n}",
|
|
21
|
|
"logs": "{}",
|
|
22
|
|
"stop": "^^C"
|
|
23
|
|
},
|
|
24
|
|
"scripts": {
|
|
25
|
|
"installation": {
|
|
26
|
|
"script": "## Gitea Installscript\r\n\r\n## update system\r\napt update\r\napt -y install --no-install-recommends jq curl ca-certificates\r\n\r\n## Variables\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"amd64\" || echo \"arm64\")\r\nLATEST=$(curl -sSL https://dl.gitea.io/gitea/version.json | jq -r .latest.version)\r\n\r\n\r\ncd /mnt/server\r\n\r\n## install gitea\r\necho -e \"Download url: https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}\"\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n echo -e \"downloading Gitea $LATEST\"\r\n curl -sSL -o gitea https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}\r\nelif [ \"${VERSION}\" == \"nightly\" ]; then\r\n echo -e \"downloading Gitea nightly\"\r\n curl -sSL -o gitea https://dl.gitea.io/gitea/main/gitea-main-linux-${ARCH}\r\nelse\r\n curl -sSL -o gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-${ARCH}\r\n echo -e \"downloading Gitea $VERSION\"\r\nfi\r\n\r\nchmod +x gitea\r\n\r\nmkdir -p custom\r\n\r\nif [ -f \"/mnt/server/custom/app.ini\" ]; then\r\n echo \"config file exists\"\r\nelse\r\n echo \"[server]\r\n LOCAL_ROOT_URL = http://${SERVER_IP}:${SERVER_PORT}/\r\n DOMAIN = ${SERVER_IP}\r\n HTTP_PORT = ${SERVER_PORT}\r\n ROOT_URL = http://${SERVER_IP}:${SERVER_PORT}/\r\n DISABLE_SSH = ${DISABLE_SSH}\r\n SSH_PORT = ${SSH_PORT}\" > /mnt/server/custom/app.ini\r\nfi\r\n\r\necho -e \"-------------------------------------------------\"\r\necho -e \"Installation completed\"\r\necho -e \"-------------------------------------------------\"",
|
|
27
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
28
|
|
"entrypoint": "bash"
|
|
29
|
|
}
|
|
30
|
|
},
|
|
31
|
|
"variables": [
|
|
32
|
|
{
|
|
33
|
|
"name": "Disable SSH",
|
|
34
|
|
"description": "Disable SSH feature when it’s not available",
|
|
35
|
|
"env_variable": "DISABLE_SSH",
|
|
36
|
|
"default_value": "false",
|
|
37
|
|
"user_viewable": true,
|
|
38
|
|
"user_editable": false,
|
|
39
|
|
"rules": "required|string|in:true,false",
|
|
40
|
|
"sort": null,
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "SSH Port",
|
|
45
|
|
"description": "SSH port displayed in clone URL.",
|
|
46
|
|
"env_variable": "SSH_PORT",
|
|
47
|
|
"default_value": "2020",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": false,
|
|
50
|
|
"rules": "required|integer|between:1024,65535",
|
|
51
|
|
"sort": null,
|
|
52
|
|
"field_type": "text"
|
|
53
|
|
},
|
|
54
|
|
{
|
|
55
|
|
"name": "Version",
|
|
56
|
|
"description": "you can use latest, nightly or version (e.g. 1.18.1)",
|
|
57
|
|
"env_variable": "VERSION",
|
|
58
|
|
"default_value": "latest",
|
|
59
|
|
"user_viewable": true,
|
|
60
|
|
"user_editable": true,
|
|
61
|
|
"rules": "required|string|max:20",
|
|
62
|
|
"sort": null,
|
|
63
|
|
"field_type": "text"
|
|
64
|
|
}
|
|
65
|
|
]
|
|
66
|
|
}
|