mthenw/frontail

frontail and nginx

bozman2021 opened this issue · 1 comments

Hi, I have a issue I'm not sure of how to solve.
I have a nginx server on 10.0.1.10
and have the log file on server 10.0.1.20 I just want to see..
it works fine on local machine to run frontail but via nginx it just shows med frontail webpage but not the output from that log file?

Help is much appreciated I would like to have this solution because it's very elegant one to show others... :-)

Solved:

Here is my nginx server.conf, it turned out to be that socket.io didn't get handeld properly...

server {
listen 80;
server_name your.domainname.com; #change to your domain name

    location /frontail/socket.io/ {
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_pass "http://servername:9001/frontail/socket.io/";
    }

    location /frontail/ {
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_http_version 1.1;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $host;           
      proxy_pass http://servername:9001;
       # proxy_http_version 1.1;
       # proxy_set_header Upgrade $http_upgrade;
       # proxy_set_header Connection "upgrade";
    }

}