Setting Up a Reverse Proxy (Nginx) for Bambuddy
-
If you want to access Bambuddy over HTTPS or via a domain name, you'll need a reverse proxy. Here's a working Nginx configuration.
Nginx Configuration
server { listen 80; server_name bambuddy.yourdomain.com; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name bambuddy.yourdomain.com; ssl_certificate /etc/letsencrypt/live/bambuddy.yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/bambuddy.yourdomain.com/privkey.pem; client_max_body_size 500M; proxy_read_timeout 300; proxy_connect_timeout 300; proxy_send_timeout 300; location / { proxy_pass http://127.0.0.1:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 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; } }Important Notes
- WebSocket support is required — The
UpgradeandConnectionheaders are essential for real-time printer status updates and camera streaming. - Increase
client_max_body_size— 3MF files can be large. 500M is a safe value for print farms. - Increase timeouts — Some operations (firmware updates, large uploads) take time.
SSL Certificate with Let's Encrypt
sudo apt install certbot python3-certbot-nginx sudo certbot --nginx -d bambuddy.yourdomain.com
For more details, check the Documentation.
- WebSocket support is required — The
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login