From 746bbb3e985d09f35c8e775bb534fb0052b746ac Mon Sep 17 00:00:00 2001 From: Mario Franze Date: Wed, 7 Jul 2021 22:02:53 +0200 Subject: [PATCH 1/4] Added Gitea to README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3fa99605..474ccf7e 100644 --- a/README.md +++ b/README.md @@ -238,5 +238,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Code-Server](/software/code-server) ### Grafana * [Grafana](/software/grafana) +### Gitea +* [Gitea](/software/gitea) ### haste-server -* [haste-server](/software/haste-server) +* [haste-server](/software/haste-server) \ No newline at end of file From f4e0329bb96688a292ccdcb967a488348dd403c2 Mon Sep 17 00:00:00 2001 From: Mario Franze Date: Wed, 7 Jul 2021 22:03:04 +0200 Subject: [PATCH 2/4] Added Gitea egg --- software/gitea/README.md | 11 ++++++++ software/gitea/egg-gitea.json | 50 +++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 software/gitea/README.md create mode 100644 software/gitea/egg-gitea.json diff --git a/software/gitea/README.md b/software/gitea/README.md new file mode 100644 index 00000000..aaa1dda0 --- /dev/null +++ b/software/gitea/README.md @@ -0,0 +1,11 @@ +# Gitea +[Gitea](https://gitea.io/en-us/) is a community managed lightweight code hosting solution written in Go. It is published under the MIT license. + +### Server Ports + +Ports required to run the server in a table format. + +| Port | default | +| ---- | ------- | +| App | 3000 | +| SSH | 22 | \ No newline at end of file diff --git a/software/gitea/egg-gitea.json b/software/gitea/egg-gitea.json new file mode 100644 index 00000000..088c1b0a --- /dev/null +++ b/software/gitea/egg-gitea.json @@ -0,0 +1,50 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1", + "update_url": null + }, + "exported_at": "2021-07-07T21:58:54+02:00", + "name": "Gitea", + "author": "mario.franze@gmail.com", + "description": "Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.", + "features": null, + "images": [ + "quay.io\/parkervcp\/pterodactyl-images:base_debian" + ], + "file_denylist": [], + "startup": ".\/gitea web -p {{SERVER_PORT}} -c .\/app.ini", + "config": { + "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}", + "startup": "{\r\n \"done\": \"Listen: \",\r\n \"userInteraction\": []\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "apt update\r\napt install -y wget\r\n\r\ncd \/mnt\/server\r\n\r\nwget -O gitea https:\/\/dl.gitea.io\/gitea\/main\/gitea-main-linux-amd64\r\nchmod +x gitea\r\n\r\nmkdir custom\r\n\r\necho \"[server]\r\nLOCAL_ROOT_URL = http:\/\/localhost:${SERVER_PORT}\/\r\nDOMAIN = ${SERVER_IP}\r\nHTTP_PORT = ${SERVER_PORT}\r\nDISABLE_SSH = ${DISABLE_SSH}\r\nSSH_PORT = ${SSH_PORT}\" > \/mnt\/server\/custom\/app.ini\r\n\r\necho \"Install complete\"", + "container": "debian:buster-slim", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Disable SSH", + "description": "Disable SSH feature when it\u2019s not available", + "env_variable": "DISABLE_SSH", + "default_value": "false", + "user_viewable": true, + "user_editable": false, + "rules": "required|string|in:true,false" + }, + { + "name": "SSH Port", + "description": "SSH port displayed in clone URL.", + "env_variable": "SSH_PORT", + "default_value": "22", + "user_viewable": true, + "user_editable": false, + "rules": "required|integer|between:1,65535" + } + ] +} \ No newline at end of file From 06473a8cfd1ab7ace3caac1c515bbe329ed6fa78 Mon Sep 17 00:00:00 2001 From: Softwarenoob Date: Thu, 22 Jul 2021 11:00:07 +0300 Subject: [PATCH 3/4] docs: move Gitea to the correct location in readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 474ccf7e..1dfac2c9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Parkers Pterodactyl eggs repo +# Parkers Pterodactyl eggs repo I am working on adding a large collection of public eggs for the Pterodactyl community. @@ -236,9 +236,9 @@ If you are reading this it looks like you are looking to add an egg to your serv ## [Software](/software/) ### Code Server * [Code-Server](/software/code-server) -### Grafana -* [Grafana](/software/grafana) ### Gitea * [Gitea](/software/gitea) +### Grafana +* [Grafana](/software/grafana) ### haste-server * [haste-server](/software/haste-server) \ No newline at end of file From ff17f7f62e8e780dafdb76c04806432e9c543212 Mon Sep 17 00:00:00 2001 From: Softwarenoob Date: Thu, 22 Jul 2021 11:16:02 +0300 Subject: [PATCH 4/4] docs: Update default SSH port Updates default SSH port as previous value was below the possible port range of Pterodactyl --- software/gitea/README.md | 2 +- software/gitea/egg-gitea.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/software/gitea/README.md b/software/gitea/README.md index aaa1dda0..3431606c 100644 --- a/software/gitea/README.md +++ b/software/gitea/README.md @@ -8,4 +8,4 @@ Ports required to run the server in a table format. | Port | default | | ---- | ------- | | App | 3000 | -| SSH | 22 | \ No newline at end of file +| SSH | 2020 | \ No newline at end of file diff --git a/software/gitea/egg-gitea.json b/software/gitea/egg-gitea.json index 088c1b0a..bb51ced3 100644 --- a/software/gitea/egg-gitea.json +++ b/software/gitea/egg-gitea.json @@ -41,10 +41,10 @@ "name": "SSH Port", "description": "SSH port displayed in clone URL.", "env_variable": "SSH_PORT", - "default_value": "22", + "default_value": "2020", "user_viewable": true, "user_editable": false, - "rules": "required|integer|between:1,65535" + "rules": "required|integer|between:1024,65535" } ] } \ No newline at end of file