[GH-ISSUE #189] frontail and nginx #126

Closed
opened 2026-03-03 16:04:38 +03:00 by kerem · 1 comment
Owner

Originally created by @bozman2021 on GitHub (Nov 23, 2019).
Original GitHub issue: https://github.com/mthenw/frontail/issues/189

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... :-)

Originally created by @bozman2021 on GitHub (Nov 23, 2019). Original GitHub issue: https://github.com/mthenw/frontail/issues/189 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... :-)
kerem closed this issue 2026-03-03 16:04:38 +03:00
Author
Owner

@bozman2021 commented on GitHub (Nov 23, 2019):

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";
    }

}

<!-- gh-comment-id:557804870 --> @bozman2021 commented on GitHub (Nov 23, 2019): 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"; } }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#126
No description provided.