πŸ‡ΊπŸ‡¦ We stand with Ukraine! πŸ‡ΊπŸ‡¦

NGINX forwarding issue affecting Obico

So, here's the issue: I am running a non-vanilla OctoPrint setup that uses NGINX instead of haproxy. I had previously posted about an issue getting this to all work correctly in OctoPrint redirecting to wrong port for login screen - #5 by Charlie_Powell
Charlie_Powell had the solution, and it worked perfectly. Everything has been completely functional - except now I think that TSD (now Obico) hasn't actually been working correctly since those fixes.

Here's the relevant part of my NGINX configuration:

server {
        listen 1080;
        server_name octoprint;

        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 $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_cache_bypass $http_upgrade;
        }
}

The Obico issue is that Obico sees my camera without issue, and I can monitor my prints through the Obico app or on the Obico website. When the connection is made, though, the local camera stream is no longer available. Additionally, Obico doesn't monitor correctly. It eternally says that the print is "Looking Good" even though it clearly isnt. Also, Obico will not save a timelapse of the print, and during monitoring, my allotted "monitoring hours" never go below 250. It appears that even though Obico can "see" my camera feed, nothing else is happening.

In order to verify that the issue is indeed with my setup, I flashed another SD Card with vanilla OctoPrint using OctoPi 0.18.0 (the same version that's used to flash my non-vanilla setup) and Obico works perfectly, and the local camera stream isn't interrupted while I'm using Obico.

If there's any additional info I'm leaving out that could be useful please let me know. I've been trying to figure this out unsuccessfully for the better part of two weeks and at this point I have thrown up a white flag. Any thoughts or questions are welcome. Thanks!

Oh one other thing that may be useful - Obico DID work on my system back before I made the changes noted in that post above. The issue was that OctoPrint itself wasn't redirecting the way I needed it to. Now that those redirects are handled, something about the way that Obico connects to OctoPrint isn't playing well with my setup.