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;