BI behing nginx and proxy_pass problem 502 Bad Gateway

alitick

n3wb
Feb 28, 2026
12
1
Prague
Hi all,

I have Blue Iris running behind Nginx in a private LAN.

Here is my current Nginx configuration (Ubuntu 24.04 lts):

NGINX:
server {
    listen 80;
    server_name example.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    server_name example.com;

    ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

    location / {
        proxy_pass http://10.77.50.10:81;
    }
}


Version 6.0.3.8 – works fine through the proxy
Version 6.0.4.4 – returns 502 Bad Gateway with the same setup

bi0.png
bi1.png


A logged-in user sees endless errors in UI3:
2304-4096-max.jpg

Other:


Additional details:
BI is on a Windows 11 machine at 10.77.50.10
Nginx is on a Ubuntu server at 10.77.50.25
Windows Firewall has an allow rule for blueiris.exe on port 81
The network uses a load balancer with multiple WAN IPs, which periodically change

Has anyone experienced similar issues with BI behind a reverse proxy, especially in a setup with changing external IPs?

Is there a known workaround or setting to fix this intermittent 502?

Thanks in advance!


P.S.
I wasted a lot of time, rolled back from the latest version to 6.0.2.10 and everything worked perfectly.
 
Last edited: