Skip to content

Commit

Permalink
build: update max size for odk collect uploads on proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 26, 2024
1 parent 30c69fb commit 5d5d29e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions nginx/templates/dev/odk.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 / {
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions nginx/templates/odk.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 5d5d29e

Please sign in to comment.