feat: add sensitive default upload settings

This commit is contained in:
Phan An 2023-04-17 00:10:34 +02:00
parent e050cb19c8
commit 109f6a4984
3 changed files with 7 additions and 3 deletions

View file

@ -9,6 +9,7 @@ server {
gzip_comp_level 9;
send_timeout 3600;
client_max_body_size 50M;
location / {
try_files $uri $uri/ /index.php?$args;

View file

@ -105,3 +105,6 @@
</IfModule>
</IfModule>
php_value upload_max_filesize 50M
php_value post_max_size 50M

View file

@ -1,6 +1,6 @@
; If your server uses a CGI/FastCGI SAPI, PHP supports per-directory configuration
; via .user.ini files. For example, you can increase the upload file and post size
; limits by setting the desired values here renaming this file into .user.ini.
; limits by setting the desired values here and renaming this file into .user.ini.
upload_max_filesize = 20M
post_max_size = 21M
upload_max_filesize = 50M
post_max_size = 50M