Using CF SSL Certificate for Pterodactyl Panel

Hello, How do I setup the SSL certificate through Cloudflare for Ptero panel, I thought I had it but when I went to the site it was this.
No description
8 Replies
Cyb3r-Jak3
Cyb3r-Jak33mo ago
That's something of your server showing the default nginx page
The Amazon Guy
The Amazon GuyOP3mo ago
Yeah when I checked nginx logs i got this
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-09-01 22:28:55 UTC; 8s ago
Docs: man:nginx(8)
Process: 11195 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Sep 01 22:28:55 pterodactyl systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 01 22:28:55 pterodactyl nginx[11195]: nginx: [emerg] invalid number of arguments in "ssl_certificate_key" directive in /etc/nginx/sites-enabled/pterodactyl.conf.save:55
Sep 01 22:28:55 pterodactyl nginx[11195]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 01 22:28:55 pterodactyl systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Sep 01 22:28:55 pterodactyl systemd[1]: nginx.service: Failed with result 'exit-code'.
Sep 01 22:28:55 pterodactyl systemd[1]: Failed to start A high performance web server and a reverse proxy server.
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-09-01 22:28:55 UTC; 8s ago
Docs: man:nginx(8)
Process: 11195 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Sep 01 22:28:55 pterodactyl systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 01 22:28:55 pterodactyl nginx[11195]: nginx: [emerg] invalid number of arguments in "ssl_certificate_key" directive in /etc/nginx/sites-enabled/pterodactyl.conf.save:55
Sep 01 22:28:55 pterodactyl nginx[11195]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 01 22:28:55 pterodactyl systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Sep 01 22:28:55 pterodactyl systemd[1]: nginx.service: Failed with result 'exit-code'.
Sep 01 22:28:55 pterodactyl systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Is it a SSL thing?
Cyb3r-Jak3
Cyb3r-Jak33mo ago
That is an error you have on line 55
The Amazon Guy
The Amazon GuyOP3mo ago
When i am adding the certificate privkey numbers do i add the -----BEGIN PRIVATE KEY----- and ending or do I have to removethem
Cyb3r-Jak3
Cyb3r-Jak33mo ago
You don't add the entire private key to the config. You write a file, keeping the -----BEGIN PRIVATE KEY-----, and in the config you put the path to that config
The Amazon Guy
The Amazon GuyOP3mo ago
I did but it looks like a php error https://srcb.in/o7vShMKc29 this is the file
Cyb3r-Jak3
Cyb3r-Jak33mo ago
Weird looks right to me. Something like stackoverflow will be able to help better with nginx issueus
The Amazon Guy
The Amazon GuyOP3mo ago
Ok, I will look into it
Want results from more Discord servers?
Add your server