From 412caa24be8efbb07668dcddaa6e3b32ac92c7d4 Mon Sep 17 00:00:00 2001 From: Aleksander Cynarski Date: Sun, 13 Jun 2021 12:21:21 +0200 Subject: [PATCH] nginx tmp --- docker/etc/nginx/conf.d/default.conf.disabled | 4 ++++ docker/etc/nginx/conf.d/sf.conf.disabled | 3 +++ docker/etc/nginx/conf.d/sf3.conf.disabled | 3 +++ 3 files changed, 10 insertions(+) diff --git a/docker/etc/nginx/conf.d/default.conf.disabled b/docker/etc/nginx/conf.d/default.conf.disabled index 5446e6a..4d42813 100644 --- a/docker/etc/nginx/conf.d/default.conf.disabled +++ b/docker/etc/nginx/conf.d/default.conf.disabled @@ -2,6 +2,10 @@ server { server_name _; root /var/www/; + client_max_body_size 256M; + client_body_temp_path /tmp 1 2; + + location / { try_files $uri /index.php$is_args$args; } diff --git a/docker/etc/nginx/conf.d/sf.conf.disabled b/docker/etc/nginx/conf.d/sf.conf.disabled index 8d3ded2..f0b0076 100644 --- a/docker/etc/nginx/conf.d/sf.conf.disabled +++ b/docker/etc/nginx/conf.d/sf.conf.disabled @@ -2,6 +2,9 @@ server { server_name _; root /var/www/public; + client_max_body_size 256M; + client_body_temp_path /tmp 1 2; + location / { # try to serve file directly, fallback to index.php try_files $uri /index.php$is_args$args; diff --git a/docker/etc/nginx/conf.d/sf3.conf.disabled b/docker/etc/nginx/conf.d/sf3.conf.disabled index 2980833..3bfbd59 100644 --- a/docker/etc/nginx/conf.d/sf3.conf.disabled +++ b/docker/etc/nginx/conf.d/sf3.conf.disabled @@ -1,6 +1,9 @@ server { client_max_body_size 108M; + client_max_body_size 256M; + client_body_temp_path /tmp 1 2; + root /var/www/web; rewrite ^/app\.php/?(.*)$ /$1 permanent;