Configure nginx worker timeout

This commit is contained in:
Manuel de Brito Fontes 2017-08-08 14:17:49 -04:00
parent 1b41e80eef
commit 106cfca1a6

View file

@ -13,6 +13,10 @@ pid /run/nginx.pid;
worker_rlimit_nofile {{ .MaxOpenFiles }};
{{ end}}
{{/* http://nginx.org/en/docs/ngx_core_module.html#worker_shutdown_timeout */}}
{{/* avoid waiting too long during a reload */}}
worker_shutdown_timeout 10s;
events {
multi_accept on;
worker_connections {{ $cfg.MaxWorkerConnections }};