Nginx Setup

Deploy DrakoPaste behind Nginx with HTTPS/SSL for secure access.

Step 1: Prerequisites

  • Ubuntu/Debian server with root access

  • Domain pointing to server

  • DrakoPaste running on port 3000 (Optional)


Step 2: Install Nginx

sudo apt update
sudo apt install nginx
sudo systemctl enable --now nginx

Step 3: SSL Certificate (Let’s Encrypt)

sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d your-domain.com

Step 4: Nginx Config

Create config:

Basic setup:

Enable:


Step 5: Firewall


Step 6: Run DrakoPaste


Step 7: Test


Last updated