Less logs

This commit is contained in:
Artur Kuś 2025-08-18 19:59:38 +02:00
parent e132bed24c
commit 2b99559d2b
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# Limitowanie requestów (pozostawiamy bez zmian)
error_log /var/log/nginx/error.log warn; # tylko warningi i błęd
# Limitowanie requestów (pozostawiamy bez zmian)
limit_req_zone $binary_remote_addr zone=ip_limit:10m rate=30r/s;
# Konfiguracja cache (nowa część)
@ -10,6 +11,8 @@
inactive=7d
max_size=2g
use_temp_path=off
manager_files=0 # Wyłącza logi manager-a
loader_files=0 # Wyłącza logi loader-a
loader_threshold=300
loader_sleep=50;
@ -47,7 +50,8 @@
proxy_set_header X-Forwarded-Port $server_port;
}
location ~* \.(jpg|jpeg|png|gif|ico|webp)$ {
location ~* \.(jpg|jpeg|png|gif|ico|webp|svg)$ {
access_log off;
proxy_pass http://arti24-container:3000;
proxy_cache GLOBAL_CACHE;
proxy_cache_valid 200 30d;