Configuring SSL
This page explains how to configure Cloudflare Origin SSL
for your Pterodactyl Panel using Nginx.
Follow each step carefully.
1
Open the Nginx configuration
The Pterodactyl panel uses an Nginx configuration file. We need to edit this file to point to the Cloudflare Origin Certificate.
sudo nano /etc/nginx/sites-enabled/pterodactyl.conf
This file controls how HTTPS and SSL are handled
for your panel domain.
2
Configure the SSL certificate
Inside the file, locate the following lines:
ssl_certificate;
ssl_certificate_key;
Update them to point to the Cloudflare Origin Certificate and Private Key you created earlier:
ssl_certificate /etc/ssl/cf/origin.pem;
ssl_certificate_key /etc/ssl/cf/origin.key;
Make sure the file paths are correct.
Both files must exist and be readable by Nginx.
Both files must exist and be readable by Nginx.
3
Save the file
After updating the file:
- Press
CTRL + X - Press
Yto confirm saving - Press
Enterto write the file
4
Restart Nginx
Apply the changes by restarting Nginx:
sudo systemctl restart nginx
This reloads the configuration and activates
the new SSL certificate.