JoCat/beautiful-listing

Nginx and async download

IgnIVertiKalCaD opened this issue · 5 comments

Как сделать, чтобы при скачивании с облака, можно было переходить в другие диррективы. В моём случае виснет и, пока не скачается файл, нельзя перемещаться.

Конфиг nginx:
`server {
listen 80 default_server;
listen [::]:80 default_server;

    index index.html index.htm index.nginx-debian.html;

    server_name mirror-sky.xyz;

    location / {
    root /var/www/mirror;
    add_header 'Access-Control-Allow-Origin' '*';
autoindex on; # �������� ����� ��������� ������
autoindex_localtime on; # ������� ����� � �������� �������� � ��������� ��������� ����
autoindex_exact_size off; # ��������� ������� ������ � �������� �������� �� ��������, �������� � ��������
sub_filter '<html>' ''; # ������� � ������� �������� �� ������ ��� ����
sub_filter '<head><title>Index of $uri</title></head>' '';
sub_filter '<body>' '';
sub_filter '<h1>Index of $uri</h1><hr>' '';
sub_filter '<hr></body>' '';
sub_filter '</html>' '';
sub_filter_once on; # �������� ����������� ������������ ��������
add_before_body /.html/header.html; # ���������� "�����" �����
add_after_body /.html/footer.html; # ���������� "������" �����
    }

}
`
image

JoCat commented

Тут хз, я тебе ничем не помогу, я и сам не понял почему такое там встречается

Ок, тогда попробую решить и сюда написать, если получится.

JoCat commented

Можешь попробовать поиграться с limit_conn, мб поможет
https://nginx.org/ru/docs/http/ngx_http_limit_conn_module.html

Без б

JoCat commented

UPD. Проблема наблюдается при использовании cloudflare