Skip to content

Commit

Permalink
Updated ctf req timeout to 20s and have docker kill after 21
Browse files Browse the repository at this point in the history
note: requests that take that long are only really cache resets so an admin should understand.
  • Loading branch information
JasonLovesDoggo committed Apr 6, 2024
1 parent bdb2244 commit 49cb637
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ RUN set -eux; cd /app/public/scss; mkdir out; for f in *.scss; \
mv out/* .; \
chmod a+r /app/public/scss/*.css

STOPSIGNAL SIGINT
# Django listens to SIGINT but not SIGTERM
STOPSIGNAL SIGTERM
# Gunicorn listens to SIGTERM
RUN apt-get purge -y sassc && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/*
EXPOSE 28730
CMD /app/.venv/bin/gunicorn \
--bind :28730 \
--error-logfile - \
--timeout 120 \
--timeout 20 \
--config /app/container/gunicorn.py \
mCTF.wsgi:application

0 comments on commit 49cb637

Please sign in to comment.