xavier-hernandez / goaccess-for-nginxproxymanager

GoAccess Docker Image for Nginx Proxy Manager and more...
https://hub.docker.com/r/xavierh/goaccess-for-nginxproxymanager
MIT License
523 stars 39 forks source link

Realtime dashboard with log access of NGINX as a backend server #148

Closed tuanhoangth1603 closed 1 year ago

tuanhoangth1603 commented 1 year ago

Hello, Thank you for your valuable project contribution. I deployed the "goaccess-for-nginxproxymanager" container to visualize the access logs of NGINX, which acts as a backend server. I configured the log format to match the proxy log format on nginxproxymanager. The Goaccess dashboard is able to display the traffic. Does the dashboard have the ability to display real-time traffic?

tuanhoangth1603 commented 1 year ago

Hello, The issue was solved. Just add some config to NGINX:

map $http_upgrade $connection_upgrade {
                default upgrade;
                '' close;
        }

and

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://goaccess_container;
proxy_buffering off;
proxy_read_timeout 7d;