Cloudpanel.io and goaccess with --real-time-html does not work correctly
Hello everyone,
I have a Debian 12 server on which Cloudpanel.io was installed via the package source. It uses Nginx as a proxy.
The goal is to monitor a page named example.com and access it on a separate page (HTML example) with the URL stats.example.com.
Port 7890 is accessible. GoAccess should be accessible via stats.example.com/report.html.
After accessing stats.example.com/report.html, the page appears, but it doesn't update the numbers. Only when I stop and restart the service do I get the current numbers again. The status on report is disconnected.
default vhost in cloudpanel site `server { listen 80; listen [::]:80; listen 443 quic; listen 443 ssl; listen [::]:443 quic; listen [::]:443 ssl; http2 on; http3 off; {{ssl_certificate_key}} {{ssl_certificate}} server_name www.example.com; return 301 https://example.com$request_uri; }
server { listen 80; listen [::]:80; listen 443 quic; listen 443 ssl; listen [::]:443 quic; listen [::]:443 ssl; http2 on; http3 off; {{ssl_certificate_key}} {{ssl_certificate}} server_name example.com www1.example.com; {{root}}
{{nginx_access_log}} {{nginx_error_log}}
if ($scheme != "https") { rewrite ^ https://$host$request_uri permanent; }
location ~ /.well-known { auth_basic off; allow all; }
{{settings}}
include /etc/nginx/global_settings;
index index.html;
location ~* ^.+.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ { add_header Access-Control-Allow-Origin "*"; add_header alt-svc 'h3=":443"; ma=86400'; expires max; access_log off; }
if (-f $request_filename) { break; } }`
You can specify the reverse port as well, e.g.,--ws-url=wss://FQDN:8080
Take a look at the list of isses, several questions about reverse proxy, e.g., https://github.com/allinurl/goaccess/issues/1280 or https://github.com/allinurl/goaccess/issues/1328