Using Nginx¶
Step 1: Install Nginx¶
If Nginx is not installed:
Step 2: Configure Nginx¶
- Create a Configuration File:
Add:
server { listen 80; server_name yourdomain.com; location / { proxy_pass http://localhost:PORT; # Replace with your dashboard's port proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } -
Enable the Configuration:
-
Test and Restart Nginx:
Step 3: Enable HTTPS with Let’s Encrypt¶
-
Install Certbot:
-
Obtain a Certificate:
-
Auto-Renewal: Ensure Certbot auto-renews the certificate: