From 36b2e1662ddfd80a013a3473a2a5137d6d6136e1 Mon Sep 17 00:00:00 2001 From: lala Date: Mon, 16 Sep 2024 14:22:57 +0800 Subject: [PATCH] feat(web) - Added NGINX_KEEPALIVE_TIMEOUT environment variable --- docker-compose.yml | 1 + web/rootfs/defaults/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a3e614d..ba99289 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -117,6 +117,7 @@ services: - MATOMO_ENDPOINT - MATOMO_SITE_ID - MICROSOFT_API_APP_CLIENT_ID + - NGINX_KEEPALIVE_TIMEOUT - NGINX_RESOLVER - NGINX_WORKER_PROCESSES - NGINX_WORKER_CONNECTIONS diff --git a/web/rootfs/defaults/nginx.conf b/web/rootfs/defaults/nginx.conf index 3e1cf9f..acfbbe5 100644 --- a/web/rootfs/defaults/nginx.conf +++ b/web/rootfs/defaults/nginx.conf @@ -17,7 +17,7 @@ http { sendfile on; tcp_nopush on; tcp_nodelay on; - keepalive_timeout 65; + keepalive_timeout {{ .Env.NGINX_KEEPALIVE_TIMEOUT | default "65" }}; types_hash_max_size 2048; server_tokens off;