From cb4c51b3b26c75de01283d6074e300cba88ea6da Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 8 Aug 2026 15:22:36 +0100 Subject: [PATCH] Increase upload size for homebox --- docker-compose.yml | 3 ++- nginx/vhost.d/assets | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 nginx/vhost.d/assets diff --git a/docker-compose.yml b/docker-compose.yml index 3204bba..a2d6ebe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -194,7 +194,7 @@ services: environment: - HBOX_LOG_LEVEL=info - HBOX_LOG_FORMAT=text - - HBOX_WEB_MAX_UPLOAD_SIZE=10 + - HBOX_WEB_MAX_UPLOAD_SIZE=20 # Please consider allowing analytics to help us improve Homebox (basic computer information, no personal data) - HBOX_OPTIONS_ALLOW_ANALYTICS=false # Use a strong random string for the pepper in production, it will be used to hash API keys and make them more secure @@ -478,6 +478,7 @@ services: - ./nginx/vhost.d/rec:/etc/nginx/vhost.d/rec.${DOMAIN}:ro - ./nginx/vhost.d/tower_location_override:/etc/nginx/vhost.d/tower.${DOMAIN}_location_override:ro - ./nginx/vhost.d/tower:/etc/nginx/vhost.d/tower.${DOMAIN}:ro + - ./nginx/vhost.d/assets:/etc/nginx/vhost.d/assets.${DOMAIN}:ro - ./nginx/conf.d/custom_proxy.conf:/etc/nginx/conf.d/custom_proxy.conf:ro - /mnt/tower/containers/nextcloud:/var/www/html/nextcloud:ro - ./christmas:/var/www/html/christmas:ro diff --git a/nginx/vhost.d/assets b/nginx/vhost.d/assets new file mode 100644 index 0000000..101fbcb --- /dev/null +++ b/nginx/vhost.d/assets @@ -0,0 +1,4 @@ +# set max upload size and increase upload timeout: +client_max_body_size 10G; +client_body_timeout 300s; +fastcgi_buffers 64 4K;