From b97d893ef0e0a897a78542fd05caac4b440f0cf5 Mon Sep 17 00:00:00 2001 From: stevensting Date: Tue, 12 May 2026 16:46:56 +0200 Subject: [PATCH] make nginx upload size configurable --- compose.yml | 1 + nginx.conf | 2 ++ 2 files changed, 3 insertions(+) diff --git a/compose.yml b/compose.yml index d27617c..445988e 100644 --- a/compose.yml +++ b/compose.yml @@ -67,6 +67,7 @@ services: - STACK_NAME - ROOT_PATH=/var/www/html/public - DOMAIN + - MAX_BODY_SIZE=${MAX_BODY_SIZE:-256M} healthcheck: test: ["CMD", "curl", "-f", "http://localhost"] interval: 30s diff --git a/nginx.conf b/nginx.conf index e5fe777..818e0f2 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,6 +4,8 @@ server { listen [::]:80; server_name localhost; + client_max_body_size {{ env "MAX_BODY_SIZE" }}; + root {{ env "ROOT_PATH" }}; #charset koi8-r; -- 2.49.0