From 1e97726a66a744ae79ecf9d912fbbddfaf8a39ae Mon Sep 17 00:00:00 2001 From: keyan Date: Wed, 2 Aug 2023 11:36:23 -0500 Subject: [PATCH] make sure upstreams have longer keepalives --- .platform/nginx/nginx.conf | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.platform/nginx/nginx.conf b/.platform/nginx/nginx.conf index 56b39d96..4faf5adf 100644 --- a/.platform/nginx/nginx.conf +++ b/.platform/nginx/nginx.conf @@ -28,9 +28,9 @@ http { listen 8008 default_server; access_log /var/log/nginx/access.log main; - client_header_timeout 60; - client_body_timeout 60; - keepalive_timeout 60; + client_header_timeout 90; + client_body_timeout 90; + keepalive_timeout 90; gzip on; gzip_comp_level 4; gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript; diff --git a/package.json b/package.json index 3a9cf6ad..046fbb79 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dev": "NODE_OPTIONS='--trace-warnings' next dev", "build": "next build", "migrate": "prisma migrate deploy", - "start": "NODE_OPTIONS='--trace-warnings' next start -p $PORT --keepAliveTimeout 0" + "start": "NODE_OPTIONS='--trace-warnings' next start -p $PORT --keepAliveTimeout 120" }, "dependencies": { "@apollo/client": "^3.7.17",