Skip to content

Commit 9f3d23b

Browse files
authored
Merge pull request #13756 from Bump-Action/uwsgi-extra-args
fix: enable uwsgi DD_UWSGI_EXTRA_ARGS passthrough
2 parents 78eb819 + 840edf5 commit 9f3d23b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/entrypoint-uwsgi.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ python3 manage.py check
2727

2828
DD_UWSGI_LOGFORMAT_DEFAULT='[pid: %(pid)|app: -|req: -/-] %(addr) (%(dd_user)) {%(vars) vars in %(pktsize) bytes} [%(ctime)] %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs (%(proto) %(status)) %(headers) headers in %(hsize) bytes (%(switches) switches on core %(core))'
2929

30-
EXTRA_ARGS=""
30+
DD_UWSGI_EXTRA_ARGS="${DD_UWSGI_EXTRA_ARGS:-}"
3131
if [ -n "${DD_UWSGI_MAX_FD}" ]; then
32-
EXTRA_ARGS="${EXTRA_ARGS} --max-fd ${DD_UWSGI_MAX_FD}"
32+
DD_UWSGI_EXTRA_ARGS="${DD_UWSGI_EXTRA_ARGS} --max-fd ${DD_UWSGI_MAX_FD}"
3333
fi
3434

3535
exec uwsgi \
@@ -42,5 +42,5 @@ exec uwsgi \
4242
--buffer-size="${DD_UWSGI_BUFFER_SIZE:-8192}" \
4343
--http 0.0.0.0:8081 --http-to "${DD_UWSGI_ENDPOINT}" \
4444
--logformat "${DD_UWSGI_LOGFORMAT:-$DD_UWSGI_LOGFORMAT_DEFAULT}" \
45-
$EXTRA_ARGS
45+
$DD_UWSGI_EXTRA_ARGS
4646
# HTTP endpoint is enabled for Kubernetes liveness checks. It should not be exposed as a service.

0 commit comments

Comments
 (0)