Accesso a PufferPanel
Apri il browser e visita: https://<SERVER_IP>
È normale ricevere un avviso SSL dal browser (certificato autofirmato).
Esegui il comando seguente sul server per creare il primo utente. Quando viene chiesto se si tratta di un amministratore, inserisci "Y" per avere accesso completo al pannello.
pufferpanel user add
Accedi con il tuo account amministratore.
Vai su Impostazioni e configura:
- URL principale (ad esempio,
https://<SERVER_IP>) - Gestione della registrazione utenti
- Configurazione email (opzionale)
Porti
- Interfaccia web: 8080
- SFTP: 5657
File e directory principali
- Configurazione del pannello:
/etc/pufferpanel/config.json - Log del pannello:
/var/log/pufferpanel - Radice web (nginx):
/var/www/pufferpanel - Certificati SSL:
/etc/nginx/ssl/pufferpanel.crt&/etc/nginx/ssl/pufferpanel.key
Gestione dei servizi
PufferPanel:
systemctl start pufferpanel
systemctl stop pufferpanel
systemctl restart pufferpanel
systemctl status pufferpanel
Nginx:
systemctl start nginx
systemctl stop nginx
systemctl restart nginx
systemctl reload nginx
systemctl status nginx
Abilitare SSL con un dominio
1. Punta il tuo dominio all'IP del server.
2. Modifica la configurazione Nginx e sostituisci entrambi server_name <IP>; con il tuo dominio (<your-domain>) per i blocchi HTTP (porta 80) e HTTPS (porta 443):
vim /etc/nginx/sites-available/pufferpanel.conf
3. Installa Certbot:
apt install -y certbot python3-certbot-nginx
4. Esegui il seguente comando per generare un certificato Let's Encrypt valido:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Sostituisci i percorsi SSL nella configurazione Nginx:
vim /etc/nginx/sites-available/pufferpanel.conf
# Before:
# ssl_certificate /etc/nginx/ssl/pufferpanel.crt;
# ssl_certificate_key /etc/nginx/ssl/pufferpanel.key;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
6. Riavvia Nginx per applicare le modifiche:
systemctl restart nginx
7. Imposta il Master URL nelle impostazioni dell'interfaccia web su https://yourdomain.com
8. Apri il browser e visita: https://yourdomain.com
Note
- Nginx è configurato per reindirizzare automaticamente HTTP → HTTPS.
- SSL è autofirmato. Per un ambiente di produzione, valuta l'uso di Let's Encrypt / Certbot.
- Docker è installato e l'utente
pufferpanelè stato aggiunto al gruppo Docker.