Open-source personal finance manager. Self-hosted, privacy-first.
fix(frontend): stop nginx from blocking attachments over 1 MB (#1237)
Viktor Avelino93b9f36f9dc2
diff --git a/charts/securo/templates/frontend/configmap-nginx.yaml b/charts/securo/templates/frontend/configmap-nginx.yamlindex 59e00738..79326431 100644--- a/charts/securo/templates/frontend/configmap-nginx.yaml+++ b/charts/securo/templates/frontend/configmap-nginx.yaml@@ -11,6 +11,9 @@ data:listen 8080;root /usr/share/nginx/html;index index.html;+ # Attachments go up to STORAGE_MAX_FILE_SIZE_MB (10 MB); nginx's default limit is 1 MB.+ # Mirrors frontend/default.conf.template.+ client_max_body_size 15m;# API proxy to backend.# Resolve the backend hostname at request time instead of caching the IPdiff --git a/frontend/default.conf.template b/frontend/default.conf.templateindex c9bcefae..ccbea031 100644--- a/frontend/default.conf.template+++ b/frontend/default.conf.template@@ -2,6 +2,8 @@ server {listen 8080;root /usr/share/nginx/html;index index.html;+ # Attachments go up to STORAGE_MAX_FILE_SIZE_MB (10 MB); nginx's default limit is 1 MB.+ client_max_body_size 15m;# API proxy to backend.# Resolve the backend hostname at request time via Docker's embedded DNS