updating max body size

This commit is contained in:
Gowtham Sai 2022-09-27 12:36:47 +05:30
parent bcab2f9371
commit 2f7f76f733
2 changed files with 3 additions and 1 deletions

View File

@ -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')

View File

@ -27,6 +27,8 @@ http {
sendfile on;
#tcp_nopush on;
client_max_body_size 50M;
#keepalive_timeout 0;
keepalive_timeout 65;