Use system fs.max-files as limits instead of hard-coded value
This commit is contained in:
parent
28c67257e3
commit
9ce52c51f1
4 changed files with 23 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ daemon off;
|
|||
|
||||
worker_processes {{ $cfg.WorkerProcesses }};
|
||||
pid /run/nginx.pid;
|
||||
worker_rlimit_nofile 131072;
|
||||
{{ if ne .MaxOpenFiles 0 }}
|
||||
worker_rlimit_nofile {{ .MaxOpenFiles }};
|
||||
{{ end}}
|
||||
|
||||
events {
|
||||
multi_accept on;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue