allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.38k stars 1.11k forks source link

Running in Docker container behind nginx-proxy, white screen on real-time-HTML #835

Open jski opened 7 years ago

jski commented 7 years ago

Hello,

I have your container running as part of my nginx-proxy setup, and I can get the report.html output just fine, but when I try to go get to the realtime HTML output, it's a white screen. Important bits of the setup included below, can you please help me discern what I'm doing wrong?

Compose to bring up container:

goaccess: image: allinurl/goaccess container_name: goaccess expose:

Config file:

time-format %H:%M:%S date-format %d/%b/%Y log-format %v %h %^ %^ [%d:%t %^] "%m %q %H" %s %D "%U" "%u" log-file /srv/logs/access.log output /srv/report/index.html real-time-html true

Stdout/stderr from the docker container:

Parsing... [30] [0/s] .. [845] [0/s] WebSocket server ready to accept new client connections

allinurl commented 7 years ago

Sounds like the browser is not able to establish a connection to the WebSocket server. Please take a look at your browser's console (Ctrl+Shift+j in Chrome) and post back any error messages that may appear in there. Thanks.

allinurl commented 7 years ago

@jskii Any updates on this?

jski commented 7 years ago

Hey @allinurl. Sorry for the delay.

Nothing showing in the console whatsoever, excepting a 400 for favicon.ico for the subdomain.

allinurl commented 7 years ago

@jskii Since I haven't played with nginx-proxy, would you be able to post exactly the steps to set it up and how you run goaccess through it? that way I can try to reproduce the problem from my side. Thanks.