PufferPanel

An open source web-based game server management panel.

Accessing PufferPanel

เปิดเบราว์เซอร์ของคุณและเข้าไปที่: https://<SERVER_IP>

A browser SSL warning is expected (self-signed certificate).

Run the following command on the server to create your first user. Be sure to enter “Y” when it asks if this is an admin so you can fully use your panel.

pufferpanel user add

Log in with your admin account.

Navigate to Settings and configure:

  • Master URL (e.g., https://<SERVER_IP>)
  • Control user registration
  • Email setup (optional)

Ports

  • Web UI: 8080
  • SFTP: 5657

ไฟล์และไดเร็กทอรีที่สำคัญ

  • Panel configuration: /etc/pufferpanel/config.json
  • Panel logs: /var/log/pufferpanel
  • Web root (nginx): /var/www/pufferpanel
  • SSL Certificates: /etc/nginx/ssl/pufferpanel.crt & /etc/nginx/ssl/pufferpanel.key

การจัดการบริการ

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

การเปิดใช้งาน SSL กับโดเมน

1. ชี้โดเมนของคุณไปยังที่อยู่ IP ของเซิร์ฟเวอร์

2. แก้ไขไฟล์การตั้งค่า Nginx และแทนที่ทั้งสองส่วน server_name <IP>; ด้วยโดเมนของคุณ (<your-domain>สำหรับทั้งบล็อก HTTP (พอร์ต 80) และ HTTPS (พอร์ต 443):

vim /etc/nginx/sites-available/pufferpanel.conf

3. ติดตั้ง Certbot:

apt install -y certbot python3-certbot-nginx

4. รันคำสั่งต่อไปนี้เพื่อสร้างใบรับรอง Let's Encrypt ที่ถูกต้อง:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. แทนที่เส้นทาง SSL ในไฟล์การตั้งค่า 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. รีสตาร์ท Nginx เพื่อให้การเปลี่ยนแปลงมีผล:

systemctl restart nginx

7. Set Master URL in web UI Settings to https://yourdomain.com

8. เปิดเบราว์เซอร์ของคุณและไปที่: https://yourdomain.com

หมายเหตุ

  • Nginx is configured to redirect HTTP → HTTPS automatically.
  • SSL is self-signed. For production, consider using Let’s Encrypt / Certbot.
  • Docker is installed and the pufferpanel user is added to the Docker group.

รายละเอียดการสมัคร