From b15a81c79ed1053871d2a65389d15ab6efc093b9 Mon Sep 17 00:00:00 2001 From: dx-tan Date: Tue, 12 Dec 2023 17:07:46 +0700 Subject: [PATCH] Update: Timeout --- cope2n-fe/nginx.conf | 1 + docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cope2n-fe/nginx.conf b/cope2n-fe/nginx.conf index 0eaf6a8..e502aa4 100644 --- a/cope2n-fe/nginx.conf +++ b/cope2n-fe/nginx.conf @@ -8,6 +8,7 @@ server { location ~ ^/api { proxy_pass {{proxy_server}}; + proxy_connect_timeout 300; } location /static/drf_spectacular_sidecar/ { diff --git a/docker-compose.yml b/docker-compose.yml index a1c6b1f..896d823 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -87,7 +87,7 @@ services: command: sh -c "python manage.py collectstatic --no-input && python manage.py migrate && python manage.py compilemessages && - gunicorn fwd.asgi:application -k uvicorn.workers.UvicornWorker -b 0.0.0.0:9000" # pre-makemigrations on prod + gunicorn fwd.asgi:application -k uvicorn.workers.UvicornWorker --timeout 300 -b 0.0.0.0:9000" # pre-makemigrations on prod # command: sh -c "tail -f > /dev/null" # minio: