airdcpp-web / airdcpp-webclient

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

Unable to upload file when using nginx proxy #330

Closed Kcchouette closed 4 years ago

Kcchouette commented 5 years ago

Current UI and client versions:

Application version: AirDC++w 2.6.1 x86_64 Web UI version: 2.6.1

Operating system:

Debian 9

Steps to reproduce the issue:

  1. Using airdcpp through Nginx proxy (https://airdcpp-web.github.io/docs/advanced/nginx-setup.html)
    1. Try to send file using the chat file upload button
    2. We receive a Failed to upload the file - Unauthorized (code 401)

Note: If you don't use Nginx proxy, sending file works

maksis commented 5 years ago

That is related to using basic auth with nginx

Kcchouette commented 5 years ago

Do you have any idea to fix that?

maksis commented 5 years ago

Do you have accounts with identical credentials in the app and nginx? You could test that.

The line proxy_set_header Authorization ""; needs to be removed first from nginx config.

Kcchouette commented 5 years ago

Commenting proxy_set_header Authorization ""; and having an account with identical credentials in the app and nginx does not fix this issue

maksis commented 4 years ago

This will be working in the next version