1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-10-06 15:22:47 -04:00
Pterodactyl-Script/README.md
Tommy 8627d65ac1
Add Fail2ban rules for wings
Signed-off-by: Tommy <contact@tommytran.io>
2022-12-16 15:47:10 -05:00

2.3 KiB

Pterodactyl-Script

Installing Pterodactyl in just a few minutes!
Please note this script is meant to be used on fresh installations only. You must run it as root.

curl -Ls https://api.github.com/repos/TommyTran732/Pterodactyl-Script/releases/latest | grep -wo "https.*install.sh" | wget -qi -

bash install.sh

Visit my Matrix group: https://matrix.to/#/#tommy:arcticfoxes.net

Features

  • Panel installation
  • Panel upgrade
  • Daemon installation
  • Daemon upgrade
  • Basic firewall configuration
  • Fail2ban for SSH and Wings
  • Automatic LetsEncrypt certificate generation
  • MariaDB SSL
  • HSTS enabled
  • Additional security headers (CSP, Permission Policy, CORP, COOP)
  • Database password reset

Dependency Updates

Currently, PHP, Composer, and Redis are installed from Remi's modular repository. As such, they will only get minor version updates with dnf upgrade (PHP 8.1.0 -> PHP 8.1.x for example). For updates between major versions of these dependencies, use dnf module to change the appstream for these dependencies.

dnf module switch-to php:remi-8.1

NGINX, MariaDB, and Docker-CE uses upstream repositories and will get the latest version available on there automatically.

Script updates/Reproducibility

Unfortunately, there is currently not an option to automatically apply new features / fixes I make to the script to an existing installation. The user has to look at the changelog and the code to apply them on their own. Theoratically, I could write a script to automate this process, but I currently don't have enough bandwidth for this and I want to spend my time developing new features. If anyone could help me with this, I would highly appreciate it.

Ideally, we would want everything to be reproducible from the OS to the Pterodactyl installation. I am currently looking at using Fedora CoreOS and Docker-Compose to accomplish this. If you are interested in such setup, please let me know.

Supported Distributions

Only RHEL 9 and its derivatives (CentOS Stream 9, Rocky Linux 9 , AlmaLinux 9) are supported at the moment. Fedora may get supported in the future if there are interest in it.

Ubuntu, Debian, and openSUSE are unlikely to get supported, due to them not supporting modular repositories which makes dependency updates cumbersome.