Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Legal Notice
  • Privacy Policy
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Help
  4. Setting Up a Reverse Proxy (Nginx) for Bambuddy

Setting Up a Reverse Proxy (Nginx) for Bambuddy

Scheduled Pinned Locked Moved Help
1 Posts 1 Posters 64 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • adminA Offline
    adminA Offline
    admin
    wrote last edited by
    #1

    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 Upgrade and Connection headers 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.

    1 Reply Last reply

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    Powered by NodeBB Contributors
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Legal Notice
    • Privacy Policy