DEgITx / rats-search

BitTorrent P2P multi-platform search engine for Desktop and Web servers with integrated torrent client.
MIT License
1.61k stars 176 forks source link

The web interface is not working #202

Open Eugeniy2024 opened 10 months ago

Eugeniy2024 commented 10 months ago

I gather everything, execute all commands, everything works. When starting the server, it starts working and looks for torrents. But when opening the root (/), there is a white screen. In the console, an error occurs when getting /app.js. There are no errors in the build process. What to do...? In previous versions as well ...

I will be glad of your help!

Без имени

Снимок экрана 2024-01-25 174356

Снимок экрана 2024-01-25 174526

Снимок экрана 2024-01-25 174607

gayhub-dev commented 4 weeks ago

In my case:

Copy app/app.js to the web/ directory.

If you're using Nginx (HTTPS) as the web server:

Change port 8095 to 443 in both app.js and main.js (just search and replace)

Configure Nginx with the following settings:

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

location / {
    proxy_pass http://127.0.0.1:8095;
}

Works like a charm!