Skip to content

Commit

Permalink
Larger client body buffer size in nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcooper committed Aug 21, 2024
1 parent a9d13f2 commit 55bd3d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
- ./nginx/image/etc/nginx/templates/app.conf.j2:/etc/nginx/templates/app.conf.j2
environment:
USE_LOCAL_CA: "${NGINX_DEBUG_MODE_ONLY_USE_LOCAL_CA:-0}"
DHPARAM_SIZE: 1024 # Faster in dev

db:
restart: 'no'
Expand Down
1 change: 1 addition & 0 deletions server/nginx/image/etc/nginx/templates/app.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ server {
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;

client_max_body_size 25M;
client_body_buffer_size 1M;

{% if DEBUG|int %}
# Static files disabled by when DEBUG is true
Expand Down

0 comments on commit 55bd3d7

Please sign in to comment.