fix nginx entypoint

This commit is contained in:
sadnub 2022-08-14 10:26:52 -04:00
parent 3955eff683
commit 6bcef8334e
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ nginxdefaultconf='/etc/nginx/nginx.conf'
# increase default nginx worker connections
/bin/bash -c "sed -i 's/worker_connections.*/worker_connections ${WORKER_CONNECTIONS};/g' $nginxdefaultconf"
sed -i '1s/^/worker_rlimit_nofile 1000000;\
/' $nginxdefaultconf
sed -e '/worker_processes.*/a\' -e 'worker_rlimit_nofile 1000000' "${nginxdefaultconf}"
grep -q -e 'worker_rlimit_nofile' "${nginxdefaultconf}" || sed -e '/worker_processes.*/a\' -e 'worker_rlimit_nofile 1000000' "${nginxdefaultconf}"
if [[ $DEV -eq 1 ]]; then
API_NGINX="