How to install Pterodactyl on Swayfloat

Step 1/1

Setup the ubuntu subsystem, please refer to the swayfloat manual on how to set it up, and then enter it's shell to continue this guide.

Step 2/1

bash <(curl https://pterodactyl-installer.se)

- type in your domain/subdomain, for me it's testpanel.swayfloat.cloud
- no ufw
- HTTPS using Let's Encrypt? type n
- Assume SSL? type y
- agree HTTPS request? type n

##############################################################
* Hostname/FQDN: sub.domain
* Configure Firewall? false
* Configure Let's Encrypt? false
* Assume SSL? true
##############################################################
    

Step 3/1

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /2.pem -out /1.pem -subj "/CN=localhost"
sed -i 's|^\s*ssl_certificate\s\+.*|    ssl_certificate /1.pem;|' /etc/nginx/sites-available/pterodactyl.conf
sed -i 's|^\s*ssl_certificate_key\s\+.*|    ssl_certificate_key /2.pem;|' /etc/nginx/sites-available/pterodactyl.conf
sed -i 's/\b443\b/8443/g; s/\b80\b/8000/g' /etc/nginx/sites-available/pterodactyl.conf
systemctl restart nginx
    

no output is OK

Step 4/1 - Cloudflare Tunnel

Go to one.dash.cloudflare.com

Go to https://sub.domain (or whatever your subdomain is) and check if it works.

if it works; Congrats, You've setup the panel properly.

Step 1/2 (Wings)

Step 2/2 (Still Wings)

If panel and node are on different hosts:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /2.pem -out /1.pem -subj "/CN=localhost"
sed -i 's|^\(\s*cert:\s*\).*|\1/1.pem|' /etc/pterodactyl/config.yml
sed -i 's|^\(\s*key:\s*\).*|\1/2.pem|' /etc/pterodactyl/config.yml
systemctl restart wings
    

If panel and node are on the same host:

sed -i 's|^\(\s*cert:\s*\).*|\1/1.pem|' /etc/pterodactyl/config.yml
sed -i 's|^\(\s*key:\s*\).*|\1/2.pem|' /etc/pterodactyl/config.yml
systemctl restart wings
    

See if there is a green heart, if yes; congrats, you've setup wings properly.