Skip to content

Commit

Permalink
update: nginx rules
Browse files Browse the repository at this point in the history
  • Loading branch information
euandrelucas committed Feb 13, 2024
1 parent 13147f9 commit 23b0416
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ server {
listen 80;
server_name localhost;

# Ajustes de timeout movidos para o nível do servidor
client_body_timeout 10s;
client_header_timeout 10s;
send_timeout 10s;
Expand All @@ -14,6 +13,8 @@ server {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
limit_req zone=req_limit_per_ip burst=5 nodelay;
limit_conn conn_limit_per_ip 10;

location ~* \.(js|css|png|jpg|jpeg|gif|ico|webp)$ {
expires 4h;
Expand All @@ -39,8 +40,5 @@ server {
expires 1d;
add_header Cache-Control "public, max-age=86400";
}

limit_req zone=one burst=5;
limit_conn addr 10;
}
}

0 comments on commit 23b0416

Please sign in to comment.