Skip to content

Commit 49cb637

Browse files
Updated ctf req timeout to 20s and have docker kill after 21
note: requests that take that long are only really cache resets so an admin should understand.
1 parent bdb2244 commit 49cb637

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ RUN set -eux; cd /app/public/scss; mkdir out; for f in *.scss; \
3434
mv out/* .; \
3535
chmod a+r /app/public/scss/*.css
3636

37-
STOPSIGNAL SIGINT
38-
# Django listens to SIGINT but not SIGTERM
37+
STOPSIGNAL SIGTERM
38+
# Gunicorn listens to SIGTERM
3939
RUN apt-get purge -y sassc && \
4040
rm -rf /var/lib/apt/lists/* && \
4141
rm -rf /var/cache/*
4242
EXPOSE 28730
4343
CMD /app/.venv/bin/gunicorn \
4444
--bind :28730 \
4545
--error-logfile - \
46-
--timeout 120 \
46+
--timeout 20 \
4747
--config /app/container/gunicorn.py \
4848
mCTF.wsgi:application

0 commit comments

Comments
 (0)