From 079c3871b94165588ccd6d3fbec218c19c804a40 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 27 Jul 2024 13:04:02 -0500 Subject: [PATCH] invoice-ninja: Fix document upload feature Invoice Ninja allows attaching documents to invoices, payments, expenses, etc. Tabitha wants to use this feature to attach receipts for her expenses, but the photos her phone takes of them are too large for the default nginx client body limit. We can raise this limit on the ingress, but we also need to raise it on the "inner" nginx. --- invoice-ninja/ingress.yaml | 2 ++ invoice-ninja/nginx.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/invoice-ninja/ingress.yaml b/invoice-ninja/ingress.yaml index fcf0b92..4e5b840 100644 --- a/invoice-ninja/ingress.yaml +++ b/invoice-ninja/ingress.yaml @@ -5,6 +5,8 @@ metadata: labels: app.kubernetes.io/name: invoice-ninja app.kubernetes.io/component: invoice-ninja + annotations: + nginx.ingress.kubernetes.io/proxy-body-size: 40m spec: rules: - host: invoiceninja.pyrocufflink.blue diff --git a/invoice-ninja/nginx.conf b/invoice-ninja/nginx.conf index 4e917c8..8f8d6f6 100644 --- a/invoice-ninja/nginx.conf +++ b/invoice-ninja/nginx.conf @@ -37,6 +37,8 @@ http { charset utf-8; + client_max_body_size 0; + location / { try_files $uri $uri/ /index.php?$query_string; }