From 5d5d29ee410e5866f4f52a641d29c52ff24bf4a1 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 26 Feb 2024 13:00:15 +0000 Subject: [PATCH] build: update max size for odk collect uploads on proxy --- nginx/templates/dev/odk.conf.template | 8 ++++---- nginx/templates/odk.conf.template | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nginx/templates/dev/odk.conf.template b/nginx/templates/dev/odk.conf.template index 67fc94dc21..4b7ba89af2 100644 --- a/nginx/templates/dev/odk.conf.template +++ b/nginx/templates/dev/odk.conf.template @@ -25,8 +25,8 @@ server { listen 80; server_name odk.fmtm.localhost; - # Max upload size 100MB - client_max_body_size 100m; + # Max upload size 500MB + client_max_body_size 500m; # The frontend location / { @@ -78,8 +78,8 @@ server { ssl_certificate /etc/nginx/central-fullchain.crt; ssl_certificate_key /etc/nginx/central.key; - # Max upload size 100MB - client_max_body_size 100m; + # Max upload size 500MB + client_max_body_size 500m; # The API location ~ ^/v\d { diff --git a/nginx/templates/odk.conf.template b/nginx/templates/odk.conf.template index a0a49eded3..629c261875 100644 --- a/nginx/templates/odk.conf.template +++ b/nginx/templates/odk.conf.template @@ -36,8 +36,8 @@ server { include /etc/nginx/options-ssl-nginx.conf; include /etc/nginx/options-security.conf; - # Max upload size 1GB - client_max_body_size 100m; + # Max upload size 500MB + client_max_body_size 500m; # Response headers (Access-Control-Allow-Origin set by FastAPI, not required) add_header 'Content-Security-Policy' 'upgrade-insecure-requests';