Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
updated nginx file with timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-dvsa committed Nov 20, 2023
1 parent c64db6d commit 49f8164
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions nginx/conf.d/frontend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,38 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

sendfile on;
server_tokens off;

types_hash_max_size 1024;
types_hash_bucket_size 512;

server_names_hash_bucket_size 64;
server_names_hash_max_size 512;

keepalive_timeout 65s;
keepalive_requests 100;
client_body_timeout 60s;
send_timeout 60s;
lingering_timeout 5s;
tcp_nodelay on;


client_body_temp_path /var/nginx/client_body_temp;
client_max_body_size 180m;
client_body_buffer_size 128k;
proxy_temp_path /var/nginx/proxy_temp;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_read_timeout 90s;
proxy_buffers 32 4k;
proxy_buffer_size 8k;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Proxy "";
proxy_headers_hash_bucket_size 64;

server {
listen 80;
index index.php index.html;
Expand All @@ -21,39 +53,6 @@ http {
add_header "X-Frame-Options" "SAMEORIGIN";
add_header "X-XSS-Protection" "1; mode=block";

sendfile on;
server_tokens off;

types_hash_max_size 1024;
types_hash_bucket_size 512;

server_names_hash_bucket_size 64;
server_names_hash_max_size 512;

keepalive_timeout 65s;
keepalive_requests 100;
client_body_timeout 60s;
send_timeout 60s;
lingering_timeout 5s;
tcp_nodelay on;


client_body_temp_path /var/nginx/client_body_temp;
client_max_body_size 180m;
client_body_buffer_size 128k;
proxy_temp_path /var/nginx/proxy_temp;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_read_timeout 90s;
proxy_buffers 32 4k;
proxy_buffer_size 8k;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Proxy "";
proxy_headers_hash_bucket_size 64;


root /opt/dvsa/olcs-frontend/public;

location ~ \.php$ {
Expand Down

0 comments on commit 49f8164

Please sign in to comment.