Added levels, use_temp_path and max_size options to cache
This commit is contained in:
parent
cff9085aae
commit
d18ce24136
|
@ -4,7 +4,8 @@ limit_conn_zone $binary_remote_addr zone=downloads_by_ip:10m;
|
|||
limit_req_status 429;
|
||||
limit_conn_status 429;
|
||||
|
||||
proxy_cache_path /tmp/nginx keys_zone=skynet:10m inactive=1d;
|
||||
# max_size sets the upper limit of the size of the cache
|
||||
proxy_cache_path /tmp/nginx levels=1:2 keys_zone=skynet:10m inactive=1d max_size=10g use_temp_path=off;
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
|
Reference in New Issue