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 = EmailMultiAlternatives(subject, text_content, email_from, recipient_list)
|
||||||
msg.attach_alternative(html_content, "text/html")
|
msg.attach_alternative(html_content, "text/html")
|
||||||
if attachment_jnf_response:
|
if attachment_jnf_response:
|
||||||
logger.info(attachment_jnf_response)
|
# logger.info(attachment_jnf_response)
|
||||||
pdf = pdfkit.from_string(attachment_jnf_response['html'], False,
|
pdf = pdfkit.from_string(attachment_jnf_response['html'], False,
|
||||||
options={"--enable-local-file-access": "", '--dpi': '96'})
|
options={"--enable-local-file-access": "", '--dpi': '96'})
|
||||||
msg.attach(attachment_jnf_response['name'], pdf, 'application/pdf')
|
msg.attach(attachment_jnf_response['name'], pdf, 'application/pdf')
|
||||||
|
|
|
@ -27,6 +27,8 @@ http {
|
||||||
sendfile on;
|
sendfile on;
|
||||||
#tcp_nopush on;
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
client_max_body_size 50M;
|
||||||
|
|
||||||
#keepalive_timeout 0;
|
#keepalive_timeout 0;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue