From 85a60adf1c12ed86b33e6d519679b4ad893380ce Mon Sep 17 00:00:00 2001 From: Leonardo Date: Wed, 5 Feb 2025 06:26:29 -0300 Subject: [PATCH] refactor: reduce worker processes to optimize nginx performance --- nginx/nginx.conf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e317336..3dfae1e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,5 +1,5 @@ user nginx; -worker_processes 2; +worker_processes 1 worker_rlimit_nofile 20480; events { @@ -86,12 +86,6 @@ http { add_header X-XSS-Protection "1; mode=block"; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; - location ~* \.(jpg|jpeg|png|gif|webp)$ { - add_header Access-Control-Allow-Origin *; - expires 30d; - add_header Cache-Control "public, no-transform"; - try_files $uri $uri/ =404; - } location /backend-api/ { proxy_pass http://quality-lab-pro/;