add frequent downloads cache to improve server responding on popular files
This commit is contained in:
parent
4379804cda
commit
bba571c4e3
|
@ -100,6 +100,12 @@ server {
|
|||
# if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs
|
||||
#proxy_buffer_size 128k;
|
||||
#proxy_buffers 4 128k;
|
||||
|
||||
# cache frequent (> 10) downloads for 24 hours
|
||||
proxy_cache skynet;
|
||||
proxy_cache_key $uri;
|
||||
proxy_cache_min_uses 10;
|
||||
proxy_cache_valid 200 1440m;
|
||||
}
|
||||
|
||||
location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" {
|
||||
|
@ -120,6 +126,12 @@ server {
|
|||
# if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs
|
||||
#proxy_buffer_size 128k;
|
||||
#proxy_buffers 4 128k;
|
||||
|
||||
# cache frequent (> 10) downloads for 24 hours
|
||||
proxy_cache skynet;
|
||||
proxy_cache_key $uri;
|
||||
proxy_cache_min_uses 10;
|
||||
proxy_cache_valid 200 1440m;
|
||||
}
|
||||
|
||||
# SLL CERTIFICATES BELOW THIS LINE
|
||||
|
|
Reference in New Issue