On the server I have a folder nginx files /. I want to do in order to retrieve from this folder every file regardless of format. It is about protection before performing a file on the server. Currently I have set:
location ^~ /files/ {
types { }
default_type application/octet-stream;
add_header Content-Disposition attachment;
}
But apparently it is not safe.
Please an example.