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.12k stars 1.1k forks source link

Just can't setup goaccess behind a nginx reverse proxy #1872

Open patricknn opened 4 years ago

patricknn commented 4 years ago

Hi guys, how are you? I'm having a bad time trying to setup goaccess behind a nginx reverse proxy Could anyone help me to solve this? I've been in this for the last 12 hours My server is a Centos 7 with enabled semanage I installed Goaccess from the source once the yum package is still using the 1.3 old version So, my Goaccess is the version 1.4

  1. Let's say that my domain is goaccess.xyz.com (for security purposes)
  2. I will use SSL on my nginx reverse proxy
  3. On goaccess I'm trying to use the port 8008 because of the semanage block, once the port 8008 is open and it is not being used
  4. Goaccess and the nginx are in the same server
  5. My issue is with the real time html
  6. When Goaccess is running I receive error 400 on Nginx

Here it is goaccess config file goaccess.conf.txt

Here it is nginx config file nginx-goaccess-xyz.com.conf.txt

Can anyone tell me what am I doing wrong?

Thank you

allinurl commented 3 years ago

Seems like there are a few questions that have been able to solve this. Maybe this helps #1297?

allinurl commented 3 years ago

or this?