소스 검색

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;