Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

RP'd Pages Time Out When Inactive

$
0
0
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;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles