Dashboard graphs and reverse proxy

Started by clarknova, November 13, 2024, 12:13:43 AM

Previous topic - Next topic
I set up an nginx reverse proxy to handle requests to OPNsense's web UI. This appears to work well so far, except that the CPU, Firewall and Traffic graphs on the dashboard don't display any data. This isn't my area of expertise, so can anyone recommend any modifications to my nginx config to get these graphs to display properly?
server {
listen 80;
server_name opnsense.example.org;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name opnsense.example.org;

location / {
proxy_pass http://172.31.0.1;
}
}


The solution turned out to be pretty simple:

location / {
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_pass http://172.31.0.1;
        }


The live widgets are working with these two extra options.

August 21, 2025, 03:21:25 PM #2 Last Edit: August 25, 2025, 03:37:03 PM by Karllito
I ran into the same issue and found that using private proxies helped a lot with filtering and access control in my setup. This website has some solid proxy options that worked well behind OPNsense and gave me more control over outbound traffic while keeping things stable. Made troubleshooting way easier too.