How to install pterodactyl on Friday VPS

Step 1/1

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

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

##############################################################
* Hostname/FQDN: testpanel.fridayvps.com
* Configure Firewall? false
* Configure Let's Encrypt? false
* Assume SSL? true
##############################################################

Step 2/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 3/1 - Cloudflare Tunnel

Go to dash.cloudflare.com/one

  • Network → Tunnels → Create Tunnel
  • Select cloudflared, name it whatever you want
  • Choose Debian → click under "If you don’t have cloudflared installed on your machine"
  • Paste the copied install command into the VPS shell
  • Then click under "After you have installed cloudflared on your machine, you can install a service to automatically run your tunnel whenever your machine starts"
  • Again, paste the copied install command into the VPS shell.
  • Now click next, use the same subdomain
  • Service Type: HTTPS
  • Service URL: localhost:8443
  • Additional Settings → TLS → enable "No TLS Verify"
  • Click save hostname

Go to https://testpanel.fridayvps.com (or whatever your subdomain is) and check if it works.

If it works; Congrats, you've setup the panel properly.

Step 1/2 (Wings)

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

- Select 1 for the installation type
- Say y to "Unsupported type of virtualization"
- n to UFW, DB user, Let's Encrypt


Cloudflare Tunnel Configuration

Go to dash.cloudflare.com/one

  • Network → Tunnels → Create Tunnel
  • Select cloudflared, name it whatever you want
  • Choose Debian → click under "If you don’t have cloudflared installed on your machine"
  • Paste the copied install command into the VPS shell
  • Then click under "After you have installed cloudflared on your machine, you can install a service to automatically run your tunnel whenever your machine starts"
  • Again, paste the copied install command into the VPS shell.
  • Now click next, use the same subdomain
  • Service Type: HTTPS
  • Service URL: localhost:443
  • Additional Settings → TLS → enable "No TLS Verify"
  • Click save hostname — it's wings setup time!

Step 2/2 (Still Wings)

  • Login to panel
  • Admin → Locations → Create one (for me: BH1)
  • Admin → Nodes → Add node (name it whatever)
  • Daemon Port: 443
  • SSL: Not Behind Proxy
  • Use the node subdomain as the FQDN (for me: testnode.fridayvps.com)
  • Copy config token and run the command as usual

RUN THIS COMMAND AFTER SETTING UP WINGS

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

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

Server Port Allocation

If your VPS series supports 100 Ports (Note: The Budget series does not) or you have the dedicated IPv4 addon, follow these steps to properly allocate ports for your Minecraft servers:

  • Go to your Pterodactyl Panel.
  • Navigate to Admin → Nodes and click on your specific node.
  • Click on the Allocation tab at the top.
  • In the "Assign New Allocations" box, put 0.0.0.0 into the IP Address field.
  • For the Ports field, enter your assigned port range from the Friday VPS Control Panel (or your specific port range if you are using the v4 addon).
  • Click submit to assign them. You can now select these ports when creating servers!