We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents faafe49 + a65f832 commit 621963eCopy full SHA for 621963e
bin/docker_start.sh
@@ -15,6 +15,8 @@ ${SCRIPTPATH}/wait_for_db.sh
15
uwsgi_port=${UWSGI_PORT:-8000}
16
uwsgi_processes=${UWSGI_PROCESSES:-4}
17
uwsgi_threads=${UWSGI_THREADS:-8}
18
+uwsgi_http_timeout=${UWSGI_HTTP_TIMEOUT:-120}
19
+uwsgi_max_requests=${UWSGI_MAX_REQUESTS:-100}
20
21
# Apply database migrations
22
>&2 echo "Apply database migrations"
@@ -25,6 +27,8 @@ python src/manage.py migrate
25
27
exec uwsgi \
26
28
--http :$uwsgi_port \
29
--http-keepalive \
30
+ --max-requests $uwsgi_max_requests \
31
+ --http-timeout $uwsgi_http_timeout \
32
--module open_inwoner.wsgi \
33
--static-map /static=/app/static \
34
--static-map /media=/app/media \
0 commit comments