airdcpp-web / airdcpp-webclient

Communal peer-to-peer file sharing application for file servers/NAS devices
https://airdcpp-web.github.io
171 stars 31 forks source link

Authentication failed when trying to login through nginx reverse proxy #465

Open ambipur76 opened 6 months ago

ambipur76 commented 6 months ago

Operating system: Debian 11 x86 (Linux -hostname removed- 5.10.0-10-686-pae #1 SMP Debian 5.10.84-1 (2021-12-08) i686 GNU/Linux) AirDC++ version: AirDC++w 2.12.1 i686 Web UI version: 2.12.0 Nginx version: 1.18.0

I run into "Authentication failed: Cannot connect to the server" when trying to login through myhostname.hu/airdcpp, however via 192.168.1.1:5600 everything works fine.

I have applied /etc/nginx/sites-available/lanproxy with the following content: server { listen 192.168.1.1:80; server_name mydomain.hu;

    access_log                    off;
    include                         snippets/error_pages.conf;

    include                         snippets/proxy*.conf;

}

I have also configured etc/nginx/snippets/proxy-airdcpp.conf with the following content: location /airdcpp/ { proxy_pass http://192.168.1.1:5600/; gzip_types text/plain application/javascript; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1; auth_basic off; }

My other reverse proxied services are also working fine. Could someone support me to investigate this problem? Thank's in advance!

lpemcee21 commented 3 months ago

I run into the same issue when trying to login to the site behind nginx. I use nginx proxy manager for setup and configuration.

lpemcee21 commented 3 months ago

Solved it. Websocket support needs to be enabled. screenshot of what worked for me.

Screenshot 2024-03-15 at 6 29 08 PM