Skip to content

Commit

Permalink
php-fpm-nginx: update default file size upload limits
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Sep 22, 2023
1 parent 72dfaa6 commit 9b22c16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php-fpm-nginx/nginx-vhost.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server {
charset utf-8;
override_charset on;

client_max_body_size {{ default .Env.PHP_UPLOAD_MAX_FILESIZE "2m" }};
client_max_body_size {{ default .Env.PHP_UPLOAD_MAX_FILESIZE "4m" }};

location / {
# First attempt to serve request as file, then
Expand Down
2 changes: 1 addition & 1 deletion php-fpm-nginx/php-ush.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[PHP]
post_max_size = {{ default .Env.PHP_POST_MAX_SIZE "8M" }}
upload_max_filesize = {{ default .Env.PHP_UPLOAD_MAX_FILESIZE "2M" }}
upload_max_filesize = {{ default .Env.PHP_UPLOAD_MAX_FILESIZE "4M" }}
memory_limit = {{ default .Env.PHP_MEMORY_LIMIT "128M" }}
max_execution_time = {{ default .Env.PHP_EXEC_TIME_LIMIT "900" }}
max_input_time = {{ default .Env.PHP_MAX_INPUT_TIME "60" }}

0 comments on commit 9b22c16

Please sign in to comment.