Welcome! Log In Create A New Profile

Advanced

RP'd Pages Time Out When Inactive

Posted by bzowk 
RP'd Pages Time Out When Inactive
August 08, 2020 02:14PM
Hey Guys -

Quick question (hopefully), please...

I use nginx with php 7.2 on Windows 10 - mostly for reverse proxy for my locally hosted web services. If I leave OctoPrint (via RP) tab inactive for a few minutes, then go back to it, the page is blank and I must refresh it - sometimes it refreshes on its own but takes a while if so. This seems to be due to nginx as I haven't noticed it occurring when accessing it directly instead of via RP, but can't figure out how to resolve.

Any suggestions? Below is the code snippet I have for it's Reverse Proxy. Thanks!

# OctoPrint Configuration
location /octoprint/ {
proxy_pass http://192.168.0.85/;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /octoprint;
proxy_http_version 1.1;
client_max_body_size 0;
}

location /octocam/ {
proxy_pass http://192.168.0.85:8080/;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /octocam;
proxy_http_version 1.1;
client_max_body_size 0;
}
Re: RP'd Pages Time Out When Inactive
August 08, 2020 02:28PM
Nevermind - Found that it occurs when accessing directly via IP as well :(

Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready