From 2f7f76f733b352ba03c55e40fd70624402df2722 Mon Sep 17 00:00:00 2001 From: Gowtham Sai <66207607+gowtham3105@users.noreply.github.com> Date: Tue, 27 Sep 2022 12:36:47 +0530 Subject: [PATCH] updating max body size --- CDC_Backend/APIs/utils.py | 2 +- nginx.conf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CDC_Backend/APIs/utils.py b/CDC_Backend/APIs/utils.py index 93d0d80..561d389 100644 --- a/CDC_Backend/APIs/utils.py +++ b/CDC_Backend/APIs/utils.py @@ -155,7 +155,7 @@ def sendEmail(email_to, subject, data, template, attachment_jnf_response=None): msg = EmailMultiAlternatives(subject, text_content, email_from, recipient_list) msg.attach_alternative(html_content, "text/html") if attachment_jnf_response: - logger.info(attachment_jnf_response) + # logger.info(attachment_jnf_response) pdf = pdfkit.from_string(attachment_jnf_response['html'], False, options={"--enable-local-file-access": "", '--dpi': '96'}) msg.attach(attachment_jnf_response['name'], pdf, 'application/pdf') diff --git a/nginx.conf b/nginx.conf index 27b6f3d..5afd9b3 100755 --- a/nginx.conf +++ b/nginx.conf @@ -27,6 +27,8 @@ http { sendfile on; #tcp_nopush on; + client_max_body_size 50M; + #keepalive_timeout 0; keepalive_timeout 65;