From cf13dbb2b971995d5e75ede08dcf2ff522dce634 Mon Sep 17 00:00:00 2001 From: hallo123wert <79359578+hallo123wert@users.noreply.github.com> Date: Sun, 4 Jan 2026 13:22:20 +0100 Subject: [PATCH 1/2] add wastebin --- README.md | 4 + wastebin/README.md | 13 +++ wastebin/egg-pterodactyl-wastebin.json | 72 +++++++++++++++++ wastebin/egg-wastebin.yaml | 107 +++++++++++++++++++++++++ 4 files changed, 196 insertions(+) create mode 100644 wastebin/README.md create mode 100644 wastebin/egg-pterodactyl-wastebin.json create mode 100644 wastebin/egg-wastebin.yaml diff --git a/README.md b/README.md index 6e6461fd..6ef23c99 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,7 @@ ### 5e Tools * [5e Tools](/5e-tools) + +### Wastebin + +* [Wastebin](/wastebin) diff --git a/wastebin/README.md b/wastebin/README.md new file mode 100644 index 00000000..7dfe5d22 --- /dev/null +++ b/wastebin/README.md @@ -0,0 +1,13 @@ +# Wastebin + +## Their [Github](https://github.com/matze/wastebin) + +Host your own Pastebin. + +## Server Ports + +Ports required to run the server in a table format. + +| Port | default | +| ---- | ------- | +| Game | 8888 | diff --git a/wastebin/egg-pterodactyl-wastebin.json b/wastebin/egg-pterodactyl-wastebin.json new file mode 100644 index 00000000..b7a7c568 --- /dev/null +++ b/wastebin/egg-pterodactyl-wastebin.json @@ -0,0 +1,72 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v2", + "update_url": null + }, + "exported_at": "2026-01-03T21:37:21+00:00", + "name": "Wastebin", + "author": "79359578+hallo123wert@users.noreply.github.com", + "description": "Wastebin is an open-source pastebin software written in Rust, which is easily installable in any\nnetwork.", + "features": null, + "docker_images": { + "Debian": "ghcr.io\/pelican-eggs\/yolks:debian" + }, + "file_denylist": [], + "startup": "WASTEBIN_ADDRESS_PORT=0.0.0.0:{{SERVER_PORT}} WASTEBIN_BASE_URL={{BASE_URL}} WASTEBIN_PASSWORD_SALT={{SALT}} WASTEBIN_SIGNING_KEY={{COOKIES_KEY}} WASTEBIN_THEME={{THEME}} WASTEBIN_DATABASE_PATH=wastebin.sqlite RUST_LOG=debug .\/wastebin", + "config": { + "files": "[]", + "startup": "{\n \"done\": \"serving on\"\n}", + "logs": "[]", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": " #!\/bin\/bash\n\necho -e \"installing dependencies\"\napt update\napt -y --no-install-recommends install zstd\n\ncd \/mnt\/server\n\n## get release info and download links\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/matze\/wastebin\/releases\/latest\")\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"x86_64\" || echo \"aarch64\")\n\nif [ \"${ARCH}\" == \"aarch64\" ]; then\n MATCH=aarch64-unknown-linux-musl\nelse\n MATCH=x86_64-unknown-linux-musl\nfi\n\nDOWNLOAD_URL=$(echo \"${LATEST_JSON}\" | jq -r \".assets[].browser_download_url\" | grep -i \"${MATCH}\")\n\necho \"Download url: ${DOWNLOAD_URL}\"\ncurl -ssL -o wastebin.zst ${DOWNLOAD_URL}\ntar -xf wastebin.zst wastebin\nrm wastebin.zst\n\nchmod +x wastebin\n\n## install end\necho \"Installation completed\"", + "container": "ghcr.io\/pelican-eggs\/installers:debian", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Url", + "description": "Base URL for the QR code display.", + "env_variable": "BASE_URL", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|url", + "field_type": "text" + }, + { + "name": "Cookies KEY", + "description": "Key to sign cookies. Must be at least 64 bytes long.", + "env_variable": "COOKIES_KEY", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|min:64", + "field_type": "text" + }, + { + "name": "Passwort SALT", + "description": "Salt used to hash user passwords used for encrypting pastes.", + "env_variable": "SALT", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|min:8", + "field_type": "text" + }, + { + "name": "THEME", + "description": "Theme colors, one of ayu, base16ocean, catppuccin, coldark, gruvbox, monokai, onehalf, solarized. ", + "env_variable": "THEME", + "default_value": "ayu", + "user_viewable": true, + "user_editable": true, + "rules": "string|required|in:ayu,base16ocean,catppuccin,coldark,gruvbox,monokai,onehalf,solarized", + "field_type": "text" + } + ] +} \ No newline at end of file diff --git a/wastebin/egg-wastebin.yaml b/wastebin/egg-wastebin.yaml new file mode 100644 index 00000000..1f34e18f --- /dev/null +++ b/wastebin/egg-wastebin.yaml @@ -0,0 +1,107 @@ +_comment: 'DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL' +meta: + version: PLCN_v3 + update_url: 'https://raw.githubusercontent.com/pelican-eggs/software/refs/heads/main/wastebin/egg-wastebin.yaml' +exported_at: '2026-01-03T21:37:10+00:00' +name: Wastebin +author: 79359578+hallo123wert@users.noreply.github.com +uuid: c03613a3-4c8c-4bff-b138-e912b088d681 +description: |- + Wastebin is an open-source pastebin software written in Rust, which is easily installable in any + network. +image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAABDdJREFUWIWtV99PW2UYft7vlNFWGL+ySDouZqIXA6Imhp8r5BzmhagQfxV1MYZkxjvjvTriZH+Af4AxZBN1Y4lxky0GtUcgFDqi0RGY4sXMuoExCAPa0nK+7/WCdoHSc9rSPclJc877nOd5+uWc730PMTPywfPX/ypdLV3rUrB6CLIBpB4FZB1DAVARCPkPQc4pxtXVOAUXu7sT+ehSrgD+sV99lsAASJ0CZDmgAEiAdn454zxV31BCDUstMfjLiTfuHShAeyjiUbG1MwT1PiC9vNcgVwCk+FFm+WkZ4ueCev9W3gH8Y3/4pFDfALI5Q7DQAAAUiOSMJPnybMdbS5leIvNCy/d/PiUJYQDNTktXCJjRIpjCrRPnn3QM0GzerhVCfAfg6MMy34U6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'ghcr.io/pelican-eggs/yolks:debian' +file_denylist: { } +startup_commands: + Default: 'WASTEBIN_ADDRESS_PORT=0.0.0.0:{{SERVER_PORT}} WASTEBIN_BASE_URL={{BASE_URL}} WASTEBIN_PASSWORD_SALT={{SALT}} WASTEBIN_SIGNING_KEY={{COOKIES_KEY}} WASTEBIN_THEME={{THEME}} WASTEBIN_DATABASE_PATH=wastebin.sqlite RUST_LOG=debug ./wastebin' +config: + files: { } + startup: + done: 'serving on' + logs: { } + stop: ^C +scripts: + installation: + script: |2- + #!/bin/bash + + echo -e "installing dependencies" + apt update + apt -y --no-install-recommends install zstd + + cd /mnt/server + + ## get release info and download links + LATEST_JSON=$(curl --silent "https://api.github.com/repos/matze/wastebin/releases/latest") + ARCH=$([[ "$(uname -m)" == "x86_64" ]] && echo "x86_64" || echo "aarch64") + + if [ "${ARCH}" == "aarch64" ]; then + MATCH=aarch64-unknown-linux-musl + else + MATCH=x86_64-unknown-linux-musl + fi + + DOWNLOAD_URL=$(echo "${LATEST_JSON}" | jq -r ".assets[].browser_download_url" | grep -i "${MATCH}") + + echo "Download url: ${DOWNLOAD_URL}" + curl -ssL -o wastebin.zst ${DOWNLOAD_URL} + tar -xf wastebin.zst wastebin + rm wastebin.zst + + chmod +x wastebin + + ## install end + echo "Installation completed" + container: 'ghcr.io/pelican-eggs/installers:debian' + entrypoint: bash +variables: + - + sort: 1 + name: Url + description: 'Base URL for the QR code display.' + env_variable: BASE_URL + default_value: '' + user_viewable: true + user_editable: true + rules: + - required + - url + - + sort: 4 + name: 'Cookies KEY' + description: 'Key to sign cookies. Must be at least 64 bytes long.' + env_variable: COOKIES_KEY + default_value: '' + user_viewable: true + user_editable: true + rules: + - required + - string + - 'min:64' + - + sort: 3 + name: 'Passwort SALT' + description: 'Salt used to hash user passwords used for encrypting pastes.' + env_variable: SALT + default_value: '' + user_viewable: true + user_editable: true + rules: + - required + - string + - 'min:8' + - + sort: 2 + name: THEME + description: 'Theme colors, one of ayu, base16ocean, catppuccin, coldark, gruvbox, monokai, onehalf, solarized. ' + env_variable: THEME + default_value: ayu + user_viewable: true + user_editable: true + rules: + - string + - required + - 'in:ayu,base16ocean,catppuccin,coldark,gruvbox,monokai,onehalf,solarized' From 30460bbe58f3176888b9da32dce45e9b1c468788 Mon Sep 17 00:00:00 2001 From: hallo123wert <79359578+hallo123wert@users.noreply.github.com> Date: Thu, 8 Jan 2026 19:57:56 +0100 Subject: [PATCH 2/2] The salt should not be visible to the user. --- wastebin/egg-pterodactyl-wastebin.json | 8 ++++---- wastebin/egg-wastebin.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wastebin/egg-pterodactyl-wastebin.json b/wastebin/egg-pterodactyl-wastebin.json index b7a7c568..27a5366b 100644 --- a/wastebin/egg-pterodactyl-wastebin.json +++ b/wastebin/egg-pterodactyl-wastebin.json @@ -43,8 +43,8 @@ "description": "Key to sign cookies. Must be at least 64 bytes long.", "env_variable": "COOKIES_KEY", "default_value": "", - "user_viewable": true, - "user_editable": true, + "user_viewable": false, + "user_editable": false, "rules": "required|string|min:64", "field_type": "text" }, @@ -53,8 +53,8 @@ "description": "Salt used to hash user passwords used for encrypting pastes.", "env_variable": "SALT", "default_value": "", - "user_viewable": true, - "user_editable": true, + "user_viewable": false, + "user_editable": false, "rules": "required|string|min:8", "field_type": "text" }, diff --git a/wastebin/egg-wastebin.yaml b/wastebin/egg-wastebin.yaml index 1f34e18f..e98368df 100644 --- a/wastebin/egg-wastebin.yaml +++ b/wastebin/egg-wastebin.yaml @@ -75,8 +75,8 @@ variables: description: 'Key to sign cookies. Must be at least 64 bytes long.' env_variable: COOKIES_KEY default_value: '' - user_viewable: true - user_editable: true + user_viewable: false + user_editable: false rules: - required - string @@ -87,8 +87,8 @@ variables: description: 'Salt used to hash user passwords used for encrypting pastes.' env_variable: SALT default_value: '' - user_viewable: true - user_editable: true + user_viewable: false + user_editable: false rules: - required - string