Skip to content

Commit af32ee1

Browse files
committed
Allow passing additional commandline arguments to gunicorn
1 parent ff486b3 commit af32ee1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

config/prod.env

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ NUMBER_OF_PROXIES=1
168168

169169
#
170170
# Gunicorn
171-
# The number of workers to spawn. This is the number of processes that will be
172-
# spawned to handle requests. The recommended number of workers is (2 x $num_cores) + 1
173-
GUNICORN_WORKERS=3
171+
#
172+
# Additional gunicorn options, change as needed.
173+
# For the number of workers to spawn, a usually recommended value is (2 x $num_cores) + 1
174+
# see:
175+
# - https://docs.gunicorn.org/en/stable/settings.html
176+
# - https://github.com/wger-project/wger/blob/master/extras/docker/production/entrypoint.sh#L95
177+
GUNICORN_CMD_ARGS="--workers 3 --threads 2 --worker-class gthread --proxy-protocol True --timeout 240"

0 commit comments

Comments
 (0)