updating max body size
This commit is contained in:
parent
bcab2f9371
commit
2f7f76f733
|
@ -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')
|
||||
|
|
|
@ -27,6 +27,8 @@ http {
|
|||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
client_max_body_size 50M;
|
||||
|
||||
#keepalive_timeout 0;
|
||||
keepalive_timeout 65;
|
||||
|
||||
|
|
Loading…
Reference in New Issue