Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ambipur76 opened this issue Dec 13, 2023 · 6 comments
Open

Comments

@ambipur76
Copy link

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
Copy link

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
Copy link

Solved it. Websocket support needs to be enabled. screenshot of what worked for me.
Screenshot 2024-03-15 at 6 29 08 PM

@maksis
Copy link
Member

maksis commented Nov 11, 2024

@ambipur76 were you able to solve this?

@ambipur76
Copy link
Author

Unfortunately not. I have no GUI like the above screenshot. I would be glad to know what and how this GUI setting "Websocket Support" changes nginx configuration.

@maksis
Copy link
Member

maksis commented Nov 11, 2024

Nothing useful in the nginx logs? The config looks correct.

@maksis
Copy link
Member

maksis commented Nov 11, 2024

Oh and what kind of certificate are you using for HTTPS? Better check the browser console log too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants