OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: clarknova on November 13, 2024, 12:13:43 AM

Title: Dashboard graphs and reverse proxy
Post by: clarknova on November 13, 2024, 12:13:43 AM
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;
}
}
Title: Re: Dashboard graphs and reverse proxy
Post by: clarknova on November 14, 2024, 12:50:32 AM

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.