Answer the question
In order to leave comments, you need to log in
restriction on proxy_store based on the size of the given file
There is the following logic:
the content is served from the proxy server,
if there is no file, the proxy server accesses http_backend and takes the file from there to its storage, gradually giving it away.
In the config, it looks like this:
location / {
aio on;
directio 1m;
root /mnt/data;
try_files $uri @download_it;
}
location @download_it
{
aio on;
directio 1m;
root /mnt/data;
proxy_store on;
proxy_store_access user:rw group:rw all:rw;
proxy_pass http://http_backend;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question