Nginx only serves the first 72 kilobytes of my JS files

Nginx seems to only download the first 72 kilobytes of my javascript files. I searched all around my nginx configuration files and can't see this parameter anywhere. I added things like

location / {
    ...
    proxy_max_temp_file_size 1m;
    ...
}

and

location / {
    ...
    sendfile on;
    sendfile_max_chunk 1m;

    ...
}

But still I can not overwrite this strange setting, which allows you to download only the first part of the file.

The connection uses nginx proxy_passfor the foward 80port to kibanas '5601' port. I feel there might be a setting restricting file transfers through a proxy server? Just not sure where to find it.

The proxypass connection is as follows:

server {
    listen 80;

    server_name logs.mydomain.com;

    auth_basic "Restricted Access";
    auth_basic_user_file /etc/nginx/htpasswd.users;

    location / {
        proxy_pass http://localhost:5601;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

And my default nginx settings are located here:

http://www.heypasteit.com/clip/OEKIR

0
1

, . NGINX .

, , . Elrorsearch GB . , .

, . Nginx , 72 .

, Nginx JS nginx kibana.

+1

Source: https://habr.com/ru/post/1671310/


All Articles