OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • Dashboard graphs and reverse proxy
« previous next »
  • Print
Pages: [1]

Author Topic: Dashboard graphs and reverse proxy  (Read 187 times)

clarknova

  • Full Member
  • ***
  • Posts: 106
  • Karma: 7
    • View Profile
Dashboard graphs and reverse proxy
« 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?
Code: [Select]
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;
}
}
Logged

clarknova

  • Full Member
  • ***
  • Posts: 106
  • Karma: 7
    • View Profile
Re: Dashboard graphs and reverse proxy
« Reply #1 on: November 14, 2024, 12:50:32 am »

The solution turned out to be pretty simple:

Code: [Select]
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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • Dashboard graphs and reverse proxy
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2