Configuring SSL
This page explains how to configure Cloudflare Origin SSL for your Pterodactyl Panel using Nginx.
Follow each step carefully.
Step-by-step guide4 steps
Step 1
Open the Nginx configuration
Section titled “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.
Terminal window sudo nano /etc/nginx/sites-enabled/pterodactyl.confStep 2
Configure the SSL certificate
Section titled “Configure the SSL certificate”Inside the file, locate the following lines:
Terminal window ssl_certificate;ssl_certificate_key;Update them to point to the Cloudflare Origin Certificate and Private Key you created earlier:
Terminal window ssl_certificate /etc/ssl/cf/origin.pem;ssl_certificate_key /etc/ssl/cf/origin.key;Step 3
Save the file
Section titled “Save the file”After updating the file:
- Press
CTRL + X - Press
Yto confirm saving - Press
Enterto write the file
- Press
Step 4
Restart Nginx
Section titled “Restart Nginx”Apply the changes by restarting Nginx:
Terminal window sudo systemctl restart nginx