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;