Pterodactyl Panel Setup
Follow these steps to install and configure your Pterodactyl Panel
Update System & Install Dependencies
apt update && apt install curl -y
Run Pterodactyl Installer
bash <(curl https://pterodactyl-installer.se)
Configuration Options:
- • Domain/subdomain:
testpanel.yourdomain.com - • UFW: No
- • HTTPS using Let's Encrypt: n
- • Assume SSL: y
- • Agree HTTPS request: n
Configure SSL & Nginx
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
Note: No output is expected - this is normal behavior.
Setup Cloudflare Tunnel
📝 Cloudflare Dashboard Steps:
- 1. Go to one.dash.cloudflare.com
- 2. Navigate to Network → Tunnels → Create Tunnel
- 3. Select cloudflared and name your tunnel
- 4. Choose Debian and copy the install command
- 5. Run the install command in your VPS
- 6. Copy and run the service command
- 7. Configure hostname with your subdomain
- 8. Set Service Type: https
- 9. Set Service URL: localhost:8443
- 10. Enable "No TLS Verify" in Additional Settings
✅ Test your setup by visiting your subdomain (e.g., https://testpanel.zylora.me)
Wings Setup
Configure Wings daemon for server management
Install Wings
Configuration Options:
- • Re-run the installer and select option 1 (Wings)
- • Unsupported virtualization: y
- • UFW: n
- • DB user: n
- • Let's Encrypt: n
Follow the same Cloudflare tunnel setup, but use your node subdomain (e.g., node.yourdomain.com) with Service URL: localhost:443
Configure Node in Panel
📍 Create Location
- • Go to Admin → Locations
- • Create new location (e.g., US1)
🖥️ Add Node
- • Go to Admin → Nodes
- • Daemon Port: 443
- • SSL: Not Behind Proxy
- • FQDN: Your node subdomain
Configure SSL Certificates
🔄 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
🏠 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
Minecraft Server Setup
Configure your Minecraft server and port forwarding
Server Allocation Configuration
📊 Allocation Settings
0.0.0.0
localhost
1025-2024
Note: Cloudflare tunnels won't work for Minecraft servers. Use the shared IPv4 instead.
Create A Record
📍 Cloudflare DNS Configuration
A
mc.yourdomain.com
146.185.236.18
DNS only (gray cloud)
Important: Make sure to click the orange cloud to turn it gray (DNS only mode).
Create SRV Record
🎯 SRV Record Configuration
SRV
_minecraft._tcp.mc
0
0
25575
mc.yourdomain.com
📋 What This Does
This tells Minecraft that mc.yourdomain.com should redirect to
virtual-net.yourdomain.com:25575
Test Your Setup
🎉 Success! Players can now connect using:
mc.yourdomain.com
⏰ DNS Propagation
DNS changes may take some time to propagate globally. If it doesn't work immediately, wait a few minutes and try again.