JustArchiNET / ASF-ui

The official web interface for ASF
Apache License 2.0
263 stars 38 forks source link

IPC log tab not showing real time logs. #1697

Open SENPAY98K opened 5 days ago

SENPAY98K commented 5 days ago

Checklist

ASF version

Latest stable release

ASF-ui version

9f5672d

Bug description

After setting up asf behind reverse proxy, logs are not showing in ipc. I have added a basepath /farm to result in asf.domain/farm/log image

Expected behavior

Displaying logs in ipc > log tab in real time.

Actual behavior

Empty ipc log tab, even after loading previous n lines.

Steps to reproduce

No response

Possible reason/solution

Adding custom path in ipc config.

Can you help us with this bug report?

Yes, I can code the solution myself and send a pull request

Global ASF.json config file

No response

BotName.json config of all affected bot instances

No response

Additional info

No response

Aareksio commented 5 days ago

After setting up asf behind reverse proxy

Probably reverse proxy not proxying websocket correctly

SENPAY98K commented 5 days ago

I used the config provided in faq.

Abrynos commented 4 days ago

I used the config provided in faq.

Works for me. image

SENPAY98K commented 1 day ago

I used the config provided in faq.

Works for me. image

could you share you nginx config?

SENPAY98K commented 1 day ago

My config

server {
    server_name asf.domain.com;

    location /stm/ {
    proxy_pass http://localhost:8888;
        include proxy_params;
    }

    location /farm/ {
    proxy_pass http://localhost:9999;
        include proxy_params;
    }

    location ~* /Api/NLog {
    proxy_pass http://localhost:$server_port;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Host $host:$server_port;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Server $host;
    proxy_http_version 1.1;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Upgrade $http_upgrade;
    }

    listen 443 ssl; 
    ssl_certificate /etc/letsencrypt/live/asf.domain.com/fullchain.pem; 
    ssl_certificate_key /etc/letsencrypt/live/asf.domain.com/privkey.pem; 
    include /etc/letsencrypt/options-ssl-nginx.conf; 
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; 

}
server {
    if ($host = asf.domain.com) {
        return 301 https://$host$request_uri;
    }

    server_name asf.domain.com;
    listen 80;
    return 404;
}