• Support
  • Reverse Proxy - Downloading files in a single stream

Just today I noticed that Reverse Proxy only downloads files from my NAS in one stream and there is no support for downloading files.
In Reverse Proxy the address (https://192.168.50.101:2800) is specified, there is QNAP Web interface.
But, if you download files directly by specifying the port in the browser, there is both downloading and multithreading.

Is this somehow solved?

UPD: I'm sorry, I was in a hurry.
I've found a solution, I'll leave it here, maybe someone will find it useful.

Edit Reverse Proxy conf:

    location / {
        proxy_pass [ where to proxy ];
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_http_version 1.1;
        proxy_set_header Connection "";

        # Ensure support for byte ranges
        proxy_set_header Range $http_range;
        proxy_set_header If-Range $http_if_range;
        add_header Accept-Ranges bytes;

        # Disable caching
        proxy_no_cache 1;
        proxy_cache_bypass 1;
        add_header Last-Modified $date_gmt;
        add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
        expires off;
    }

Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com