From 36c5590944e1464c88caa2e5cc5f7cabae44f85d Mon Sep 17 00:00:00 2001 From: Ishaan Mittal Date: Thu, 19 Oct 2023 16:05:14 +0530 Subject: [PATCH] increasing upload file size --- entrypoint.sh | 2 +- nginx/default.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9ed4fe7..f7db22b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,4 +8,4 @@ python manage.py migrate --noinput python manage.py collectstatic --noinput # Start server -gunicorn messWebsite.wsgi:application --bind 0.0.0.0:8000 --workers=16 +gunicorn messWebsite.wsgi:application --bind 0.0.0.0:8000 --workers=16 --preload diff --git a/nginx/default.conf b/nginx/default.conf index 3938fb9..b92a809 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -5,6 +5,7 @@ upstream django{ server{ listen 80; + client_max_body_size 10M; proxy_set_header HOST $host; location /{ proxy_pass http://django;