From 40ed7980e056edbbc2d72db73772d972d0635d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Fri, 28 Jun 2024 13:29:53 +0200 Subject: [PATCH] Add a configurable client_max_body_size --- Dockerfile | 1 + context/drupal/etc/nginx/templates/default.conf.template | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index d9c62d3..acf3511 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ COPY /drupal / ENV NGINX_FASTCGI_PASS_HOST php ENV NGINX_FASTCGI_PASS_PORT 9000 +ENV NGINX_CLIENT_MAX_BODY_SIZE 128M ## # Proxy diff --git a/context/drupal/etc/nginx/templates/default.conf.template b/context/drupal/etc/nginx/templates/default.conf.template index cb9dd11..4e95286 100644 --- a/context/drupal/etc/nginx/templates/default.conf.template +++ b/context/drupal/etc/nginx/templates/default.conf.template @@ -10,6 +10,8 @@ server { disable_symlinks off; + client_max_body_size ${NGINX_CLIENT_MAX_BODY_SIZE}; + location / { try_files $uri /index.php?$query_string; }