瀏覽代碼

feat(web) - Added NGINX_KEEPALIVE_TIMEOUT environment variable

lala 8 月之前
父節點
當前提交
36b2e16
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      docker-compose.yml
  2. 1 1
      web/rootfs/defaults/nginx.conf

+ 1 - 0
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

+ 1 - 1
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;