Skip to main content

Changing The Panel Domain For Pterodactyl

This guide will be using CloudFlare with nginx installed on the server, with the record proxied using port 8443 for the daemon and SFTP requiring an IP connection instead of the hostname. If this doesn't make sense, ask.

Login to your DNS and firstly update the A record to what you wish it to be. For example, I am changing the domain from manage. to panel. 

Then SSH into your system and go to /etc/nginx/sites-enabled and update the pterodactyl.conf with your new domain. Easiest way is by nano'ing into it, doing Ctrl + \ (Backslash), typing in "manage." then replacing with "panel." like I did below in the GIF. I then did Ctrl + X, Y then Enter.

Your next step is restarting nginx, systemctl restart nginx. Now head into /var/www/pterodactyl and update the .env file with the new domain under the APP_URL option.

Now head to your panel, in our case panel.jasmeow.systems and login with the same credentials you had previously, everything is the same. Go to the Admin side > Nodes > Click the node > Settings tab. Update the domain in the FQDN box as shown below, make sure your daemon port is 8443 (Or one of the CloudFlare's HTTPS ports) and click "Save Changes" in the bottom right.

Head to the configuration tab and click Generate Token. Pop back into SSH and paste it in, allowing the overwrite.

Restart wings with systemctl restart wings - You are all done and wings should now come back online with a green heart. Not come online? Check the status of wings and solve the error or reach out for assistance.