30r/s
This commit is contained in:
parent
9e0b6425dd
commit
60b484b771
|
|
@ -1,9 +1,9 @@
|
||||||
# Limitowanie requestów (pozostawiamy bez zmian)
|
# Limitowanie requestów (pozostawiamy bez zmian)
|
||||||
limit_req_zone $binary_remote_addr zone=ip_limit:10m rate=2r/s;
|
limit_req_zone $binary_remote_addr zone=ip_limit:10m rate=30r/s;
|
||||||
|
|
||||||
# Konfiguracja cache (nowa część)
|
# Konfiguracja cache (nowa część)
|
||||||
proxy_cache_path /var/cache/nginx05GB levels=1:2 keys_zone=STATIC:50m inactive=24h max_size=500m use_temp_path=off;
|
proxy_cache_path /var/cache/nginx05GB levels=1:2 keys_zone=STATIC:50m inactive=24h max_size=500m use_temp_path=off;
|
||||||
proxy_cache_path /var/cache/nginx2GB levels=1:2 keys_zone=MEDIA:100m inactive=7d max_size=2g use_temp_path=off;\
|
proxy_cache_path /var/cache/nginx2GB levels=1:2 keys_zone=MEDIA:100m inactive=7d max_size=2g use_temp_path=off;
|
||||||
|
|
||||||
error_log /var/log/nginx/error.log notice;
|
error_log /var/log/nginx/error.log notice;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue