SSL Configuration
SSL requirements
- A domain name
- SSH access
- sudo privileges
Installing dependencies
This tutorial will use Ubuntu Jammy 22.04 LTS as the operating system, and Cloudflare as the DNS provider.
To install the dependencies, you will need to run the following commands:
Adding a domain name
For this, we will want to go to Cloudflare, and create an A record for our domain with the name you want and your server’s Public IP.
Setting nginx virtual host
To enable this, we will need to edit the file /etc/nginx/sites-enabled/pufferpanel.conf
, and we will use nano to edit it. To edit it, run the following command:
And now, you have to add the following:
Remember to change panel.examplehost.com
to your domain name!
If you’re using PuTTY, you can right click on the terminal to paste it, and if you’re using just a terminal, you can press Ctrl + Shift + V
to paste it.
To save now, you have to press Ctrl + X
, and then Y
.
Now you’ll want to restart nginx, to do that, run the following command:
We also need to open ports 80 and 443, so we can access the panel.
Enabling SSL
To enable SSL, we will need to run the following command:
And that’s it! Now if you go into your browser, and try to go into https://(yourdomain), you should be able to access the panel!