Skip to content

Commit

Permalink
refactor: reduce worker processes to optimize nginx performance
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoMeireles55 committed Feb 5, 2025
1 parent a3a04ef commit 85a60ad
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
user nginx;
worker_processes 2;
worker_processes 1
worker_rlimit_nofile 20480;

events {
Expand Down Expand Up @@ -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/;
Expand Down

0 comments on commit 85a60ad

Please sign in to comment.